diff --git a/src/org/usfirst/frc/team4737/lib/Gamepad.java b/src/org/usfirst/frc/team4737/lib/Gamepad.java index 495f93b..607677a 100644 --- a/src/org/usfirst/frc/team4737/lib/Gamepad.java +++ b/src/org/usfirst/frc/team4737/lib/Gamepad.java @@ -197,6 +197,14 @@ public DPad(Gamepad gamepad, String name, int id) { new DPadButton[] { UP, UP_LEFT, UP_RIGHT }); } + /** + * Get the angle in degrees of the DPad. + * + *
The POV angles start at 0 in the up direction, and increase clockwise (eg right is 90,
+ * upper-left is 315).
+ *
+ * @return the angle of the POV in degrees, or -1 if the POV is not pressed.
+ */
public int getDegree() {
return gamepad.gamepad.getPOV(id);
}
@@ -306,7 +314,7 @@ public Axis getAxis(String name) {
* being used.
*
* @param name
- * - The name of the thumbstick (usually just "LS"
or
+ * The name of the thumbstick (usually just "LS"
or
* "RS"
)
* @return Returns a thumbstick mapped with the given name
*/
@@ -319,7 +327,7 @@ public Thumbstick getThumbstick(String name) {
* being used.
*
* @param name
- * - The name of the DPad (usually just "DPAD"
)
+ * The name of the DPad (usually just "DPAD"
)
* @return Returns a button mapped with the given name
*/
public DPad getDPad(String name) {