|
| | CommandJoystick (int port) |
| | Construct an instance of a controller.
|
| wpi::Joystick & | GetHID () |
| | Get the underlying GenericHID object.
|
| class Trigger | Trigger (wpi::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const |
| | Constructs an event instance around the trigger button's digital signal.
|
| class Trigger | Top (wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs an event instance around the top button's digital signal.
|
| double | GetMagnitude () const |
| | Get the magnitude of the vector formed by the joystick's current position relative to its origin.
|
| wpi::units::radian_t | GetDirection () const |
| | Get the direction of the vector formed by the joystick and its origin.
|
| Public Member Functions inherited from wpi::cmd::CommandGenericHID |
| | CommandGenericHID (int port) |
| | Construct an instance of a device.
|
| wpi::GenericHID & | GetHID () |
| | Get the underlying GenericHID object.
|
| Trigger | Button (int button, wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs an event instance around this button's digital signal.
|
| Trigger | POV (wpi::DriverStation::POVDirection angle, wpi::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance based around this angle of a POV on the HID.
|
| Trigger | POV (int pov, wpi::DriverStation::POVDirection angle, wpi::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance based around this angle of a POV on the HID.
|
| Trigger | POVUp (wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance based around the up direction of the default (index 0) POV on the HID.
|
| Trigger | POVUpRight (wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance based around the up right direction of the default (index 0) POV on the HID.
|
| Trigger | POVRight (wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance based around the right direction of the default (index 0) POV on the HID.
|
| Trigger | POVDownRight (wpi::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance based around the down right direction of the default (index 0) POV on the HID.
|
| Trigger | POVDown (wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance based around the down direction of the default (index 0) POV on the HID.
|
| Trigger | POVDownLeft (wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance based around the down left direction of the default (index 0) POV on the HID.
|
| Trigger | POVLeft (wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance based around the left direction of the default (index 0) POV on the HID.
|
| Trigger | POVUpLeft (wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance based around the up left direction of the default (index 0) POV on the HID.
|
| Trigger | POVCenter (wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance based around the center (not pressed) position of the default (index 0) POV on the HID.
|
| Trigger | AxisLessThan (int axis, double threshold, wpi::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance that is true when the axis value is less than threshold, attached to the default command scheduler
button loop.
|
| Trigger | AxisGreaterThan (int axis, double threshold, wpi::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance that is true when the axis value is greater than threshold, attached to the default command scheduler
button loop.
|
| Trigger | AxisMagnitudeGreaterThan (int axis, double threshold, wpi::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance that is true when the axis magnitude value is greater than threshold, attached to the given loop.
|
| void | SetRumble (wpi::GenericHID::RumbleType type, double value) |
| | Set the rumble output for the HID.
|
| bool | IsConnected () const |
| | Get if the HID is connected.
|
A version of wpi::Joystick with Trigger factories for command-based.
- See also
- wpi::Joystick