Package org.bobabots253.Tapioca
Class POVButton
- java.lang.Object
-
- edu.wpi.first.wpilibj2.command.button.Trigger
-
- edu.wpi.first.wpilibj2.command.button.Button
-
- edu.wpi.first.wpilibj2.command.button.POVButton
-
- org.bobabots253.Tapioca.POVButton
-
public class POVButton extends POVButton
-
-
Constructor Summary
Constructors Constructor Description POVButton(GenericHID joystick, int angle)
POVButton(GenericHID joystick, CompassPOV pov)
-
Method Summary
-
Methods inherited from class edu.wpi.first.wpilibj2.command.button.Button
cancelWhenPressed, toggleWhenPressed, toggleWhenPressed, whenHeld, whenHeld, whenPressed, whenPressed, whenPressed, whenReleased, whenReleased, whenReleased, whileHeld, whileHeld, whileHeld
-
Methods inherited from class edu.wpi.first.wpilibj2.command.button.Trigger
and, cancelWhenActive, negate, or, toggleWhenActive, toggleWhenActive, whenActive, whenActive, whenActive, whenInactive, whenInactive, whenInactive, whileActiveContinuous, whileActiveContinuous, whileActiveContinuous, whileActiveOnce, whileActiveOnce
-
-
-
-
Constructor Detail
-
POVButton
public POVButton(GenericHID joystick, int angle)
- Parameters:
joystick
- The GenericHID object that has the POVangle
- The desired angle (e.g. 90, 270)
-
POVButton
public POVButton(GenericHID joystick, CompassPOV pov)
- Parameters:
joystick
- The GenericHID object that has the POVpov
- The desired angle in enum format
-
-