mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Update POV documentation with examples of POV angles
Change-Id: If0f5b75366785b94a97b02694667fc00f8bfe196
This commit is contained in:
@@ -332,7 +332,10 @@ public class Joystick extends GenericHID {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the state of a POV on the joystick.
|
||||
* Get the angle in degrees of a POV on the joystick.
|
||||
*
|
||||
* The POV angles start at 0 in the up direction, and increase
|
||||
* clockwise (eg right is 90, upper-left is 315).
|
||||
*
|
||||
* @param pov The index of the POV to read (starting at 0)
|
||||
* @return the angle of the POV in degrees, or -1 if the POV is not pressed.
|
||||
|
||||
Reference in New Issue
Block a user