|
Joystick getThrottle() returns 0
I'm having an issue getting the throttle position of the joystick. When I call the getThrottle() method on joystick the value is always 0 regardless of the throttle position. Below is the code I am using:
OI.getInstance().getDriverJoystick().getThrottle() ;
OI.getInstance().getDriverJoystick().getAxis(Joyst ick.AxisType.kThrottle);
When I make a call to get the stick x-axis position it works fine. Value is between -1 and 1.
OI.getInstance().getDriverJoystick().getAxis(Joyst ick.AxisType.kY);
Is there something I am missing here?
|