Go to Post All the "official game hint" is is an "official red herring" - Cory [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-11-2009, 07:01 PM
ctcw ctcw is offline
Registered User
FRC #1540
 
Join Date: Dec 2009
Location: Portland, OR
Posts: 1
ctcw is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-14-2009, 11:11 AM
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Problem with Joystick Throttle

Try using a different axis.

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

I think valid axis are 1-6
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
Reply With Quote
  #3   Spotlight this post!  
Unread 12-15-2009, 07:11 PM
ellisk ellisk is offline
Registered User
FRC #1540
 
Join Date: Dec 2008
Location: Vancouver, WA
Posts: 41
ellisk is on a distinguished road
Re: Problem with Joystick Throttle

joystick.getRawAxis(3) correctly returns the throttle in Java for the provided ATTACK3 joysticks.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FTC]: Problem with Code or Problem with Bluetooth? VeedotJaydot FIRST Tech Challenge 3 01-27-2009 06:22 PM
Problem with the joystick Asmos NI LabVIEW 5 01-23-2009 09:40 AM
Help with programing saitekx36f joystick and throttle sonicx059 Programming 4 01-21-2008 08:30 PM
problem with joystick buttons (top left one) Richomundo Programming 5 02-15-2004 05:16 PM
joystick problem archiver 2000 12 06-23-2002 11:08 PM


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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