Go to Post When you are at the regional no one cares if you are a rookie. You are a part of the family. - scitecteach [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 23-01-2015, 16:44
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 434
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Can you get joystick values?

In either java or c++, they're both very similar.

Check out the getRawButton method in the joystick class

http://wpilib.screenstepslive.com/s/...1881-joysticks


[edit]
If you're asking how to get the status of all buttons simultaneously, look at the getStickButtons method in the DriverStation class.

Source code is here:
http://team2168.org/javadoc/src-html....html#line.291

Not really sure what the format of the returned in it. I would assume it's that each bit is set corresponding to button id. The code isn't really commented... so you'll need to just try it out and see.
__________________
http://team2168.org

Last edited by otherguy : 23-01-2015 at 17:00. Reason: more infos
 


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


All times are GMT -5. The time now is 22:18.

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