Log in

View Full Version : reversing an axis on a joystick


Twisted eric
29-01-2012, 16:41
nevermind

Chiller
29-01-2012, 16:48
My team is doing mechanum wheels and I don't know how to program them with two joysticks(or even one). and almost got it but for a normaly set.getY(); will set one side going backwards. Please help.

Just invert the values... when you go positive then change it to negative: -set.getY();
For when you go negative do: Math.abs(set.getY());