View Full Version : reversing an axis on a joystick
Twisted eric
29-01-2012, 16:41
nevermind
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());
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.