Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Problem with Joystick Throttle (http://www.chiefdelphi.com/forums/showthread.php?t=79285)

ctcw 12-11-2009 07:01 PM

Problem with Joystick Throttle
 
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 11:11 AM

Re: Problem with Joystick Throttle
 
Try using a different axis.

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

I think valid axis are 1-6

ellisk 12-15-2009 07:11 PM

Re: Problem with Joystick Throttle
 
joystick.getRawAxis(3) correctly returns the throttle in Java for the provided ATTACK3 joysticks.


All times are GMT -5. The time now is 07:35 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi