POVButton¶
- class commands1.buttons.POVButton(joystick: wpilib.interfaces._interfaces.GenericHID, angle: int, povNumber: int = 0)¶
Bases:
commands1._impl._commands_v1.button.Button
A Button that gets its state from a POV on a GenericHID.
This class is provided by the OldCommands VendorDep
Creates a POV button for triggering commands.
- Parameters
joystick – The GenericHID object that has the POV
angle – The desired angle in degrees (e.g. 90, 270)
povNumber – The POV number (@see GenericHID#GetPOV)
- get() → bool¶