Go to Post Most of all, I long to give others a chance to experience what I did with FIRST, to give people from my home town that opportunity, because FIRST really is that once in a lifetime opportunity that so many people dont get a chance to be a part of. It shouldnt be that way. - Jacqui Sutton [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 30-11-2016, 12:57
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 54
gerthworm has a spectacular aura aboutgerthworm has a spectacular aura about
Re: Using POV in Java

Java background - The "implements" keyword indicates that the class named POV has a required set of interface functions defined by the interface IControl. IControl effectively puts requirements on what sorts of functionality the POV class must provide. http://stackoverflow.com/questions/4...-do-on-a-class has a pretty good example.

As already mentioned, Joystick.getPOV() is probably the right answer, making the above statement relevant only for your edification.

As an example somewhat related to what you were doing, here's code our students wrote last year specific to an XBOX 360 controller, where we determine which direction(s) the POV hat is pushed based on angle criteria:
https://github.com/RobotCasserole173...ontroller.java

Last edited by gerthworm : 30-11-2016 at 13:24.
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 23:46.

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