|
Re: speed change in teleop
Which motor do you want to change speed of? I see Joystick 1 tied to two different motor definitions. This alone is a problem. You need only one of them. Make sure whatever one you choose has also been defined in the 'begin.vi'
You have motor definitions for 'arm' and 'hand' and are controlled from buttons on Joystick 1. You have the motor speed hardwired for both at .125. Are these the ones you want to change the speed of? You can just change the value of .125 to another value between 0 - 1. This of course is hardwired though and can't be changed while the program is running. You could tie another Joystick to these axis if you need variable control while code is running.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire
|