Go to Post Wait...you're supposed to have a driver? I guess I should have read past the Autonomous section in the manual :D - ASD20 [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 25-01-2013, 00:30
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Have an XboxJoystick class!

After looking at the other Xbox controller classes I had found I noticed a major problem if you wanted to use them with the CommandBased Robot: You couldn't use the JoystickButton class with them. There were also a few placed I noticed it asking for a GenericHID object as a parameter. Then while you could use the Joystick class and getRawButton/Axis() to get what you need, I wanted the software to keep track of the labels for me.

So here is the class I offer to you. It is only mildly tested so I may have miss-numbered a button or something, but what testing I have done, worked.

https://github.com/frc3946/UltimateA...xJoystick.java
__________________
Programmer - A creature known for converting Caffeine into Code.
Studying Computer Science @ Louisiana Tech University
Associate Consultant @ Fenway Group

2012-13: 3946 - Head of Programming, Electrical and Web
2014 - 3468 - Programming Mentor
2015 - Present - Lurker
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


All times are GMT -5. The time now is 10:08.

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