Log in

View Full Version : Problem with Joystick Throttle


ctcw
11-12-2009, 19:01
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
14-12-2009, 11:11
Try using a different axis.

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

I think valid axis are 1-6

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