View Single Post
  #6   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: 56
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