Quote:
Originally Posted by WizenedEE
The throttle just adjusts the value returned by the vi, nothing else.
What our team did is multiplied the value of the joysticks by the throttle value, so we can have a slower speed.
It's probably not a good idea to coerce the joystick value, because it's much more natural for the drivers to have a linear joystick to speed relationship, rather than a linear one and a flat part. Multiply by .8 (Or the throttle value!) instead.
On many joysticks, keep in mind that the up position is negative (just like the Y axis). Also keep in mind that it goes from -1 to 1, not 0 to 1, so if you want to use it as a throttle, make sure you make it a value from 0 to 1 or your robot will run backwards half the time (which actually can be useful, but probably not for competition).
|
Yeah true. I forgot about the negative numbers. But is their anyway for axis 3 to work as a speed controller instead of having a set constant at .8 and -.8? We also have it so when the trigger is pushed, everything drops to .5 and -.5. This is for easier movement deploying the minibot. But if axis 3 worked as a speed controller, it would make this a lot easier because the drivers would be able to constantly adjust the speed.