I have found many post's but no answers on this subject.
Please dont give me outside links or links to other topics here
I would just like to know how to spesifiy witch button on the joystick i am useing.

As far as the buttons go, nothing. The only difference I know of is the joystick axis output ranges from like -30000 something to +30000 something in increments of 256 or 512 or something around there...

As far as the buttons go, nothing. The only difference I know of is the joystick axis output ranges from like -30000 something to +30000 something in increments of 256 or 512 or something around there...

- Austin

The joystick ranges from -1 to 0 to 1. If it is scaled to 127 (which it is set to by default) then the joystick ranges from -127 to 0 to 127. Which gives you a more finer control over a motor.

I want to program in a way that when i press the trigger the motor works at half speed...
I don't know how to do it.. I did a little bit of the steps that were mentioned above and it really didn't help. So can you tell me how to do it??
If you can provide pictures with that I would really appreciate..
Thank you..
Mohit

Create a case structure. Wire the button input to the case structure's "?" node. Then make the "True" case have a 0.5 constant in it. Make the "False" case have a 0 constant in it. Wire both the constants out of the case structure to the Set Motor VI. Voila!

Here's a shot of something that doesn't do exactly what you want, but it's close and easily modifyable ... our trigger overrides the throttle and sets it to full speed.

In the pic, the case structure shows the FALSE case, where the throttle goes straight thru, but when button 1 is pressed, the TRUE case has a hard constant 1.0 wired up into the throttle output of that case structure, ignoring the actual joystick throttle until the button is released.

In your case, you'd wanna' wire up a 0.5 constant to it, if you want half-speed.