Go to Post I don't really care that the best on Curie may or may not be better than Newton, since we're going to spend the rest of the offseason discussing it no matter how the decision fell. - Jessica Boucher [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 01-08-2016, 07:59 PM
Rakusan2 Rakusan2 is offline
Registered User
AKA: Tomas Rakusan
FRC #3571 (Milton Mustangs)
Team Role: Programmer
 
Join Date: May 2014
Rookie Year: 2011
Location: Milton, ON, Canada
Posts: 22
Rakusan2 is an unknown quantity at this point
Xbox Controller Class V2

I have been playing around with some of my last years code and decided to revise the XboxController class.
The major changes in this version are that it no longer uses the Joystick class, it now supports commands, and it now checks if the sticks are in the user defined dead zone.

I have also not yet been able to remove the refresh method which is necessary for the changedUp and changedDown variables on each of the buttons in order for them to change only once per run.

https://github.com/FRC3571/2015TestB...ontroller.java

Just a couple of small warnings.
I am confident that this code works but it has not yet been tested.
Also just like my last years code it only gets the current values for everything after the refresh method has been called.
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 07:27 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