PDA

View Full Version : Problem with Joystick Throttle


ctcw
12-11-2009, 06:01 PM
I am having a problem with the throttle on my team's joystick. We recently switched from C++ to Java and everything seems to be working fine except for the throttle. It seems to be returning a value of 0.8984375 no matter what it is set to. For instance,

System.out.println(joystick.getThrottle());

returns

[cRIO] 0.8984375

every time. Has anyone been experiencing a similar problem?

Thanks.

Kingofl337
12-14-2009, 10:11 AM
Try using a different axis.

System.out.println(joystick.getRawAxis(3));

I think valid axis are 1-6

ellisk
12-15-2009, 06:11 PM
joystick.getRawAxis(3) correctly returns the throttle in Java for the provided ATTACK3 joysticks.