|
Re: Joystick question
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).
|