48 .GetDefaultButtonLoop())
const;
88 .GetDefaultButtonLoop())
const;
101 .GetDefaultButtonLoop())
const;
114 .GetDefaultButtonLoop())
const;
138 .GetDefaultButtonLoop())
const;
151 .GetDefaultButtonLoop())
const;
164 .GetDefaultButtonLoop())
const;
177 .GetDefaultButtonLoop())
const;
190 .GetDefaultButtonLoop())
const;
206 int axis,
double threshold,
224 int axis,
double threshold,
239 int axis,
double threshold,
POVDirection
A controller POV direction.
Definition DriverStation.hpp:62
A declarative way to bind a set of actions to a loop and execute them when the loop is polled.
Definition EventLoop.hpp:15
Handle input from standard HID devices connected to the Driver Station.
Definition GenericHID.hpp:26
RumbleType
Represents a rumble output on the Joystick.
Definition GenericHID.hpp:31
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 t...
void SetRumble(wpi::GenericHID::RumbleType type, double value)
Set the rumble output for 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 HI...
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 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 th...
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 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 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,...
Trigger Button(int button, wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs an event instance around this button's digital signal.
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)...
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...
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 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,...
wpi::GenericHID & GetHID()
Get the underlying GenericHID object.
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 ...
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,...
CommandGenericHID(int port)
Construct an instance of a device.
bool IsConnected() const
Get if the HID is connected.
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.
static CommandScheduler & GetInstance()
Returns the Scheduler instance.
This class provides an easy way to link commands to conditions.
Definition Trigger.hpp:31
Definition CommandNiDsStadiaController.hpp:15