Log in

View Full Version : Joystick values (?)


beefy1
23-12-2008, 11:14
what are the joystick values when I use GetX(), GetY() functions of the wpilib library?

Kingofl337
23-12-2008, 11:26
GetY and GetX will return a float from 1 to -1 with 0 being in the center.
So, roughly 3/4 forward should return around .75 ish, in reality though the
number will probably be like .75124 if you use cout or printf.