47 .GetDefaultButtonLoop())
const;
93 .GetDefaultButtonLoop())
const;
106 .GetDefaultButtonLoop())
const;
119 .GetDefaultButtonLoop())
const;
143 .GetDefaultButtonLoop())
const;
156 .GetDefaultButtonLoop())
const;
169 .GetDefaultButtonLoop())
const;
182 .GetDefaultButtonLoop())
const;
195 .GetDefaultButtonLoop())
const;
211 int axis,
double threshold,
229 int axis,
double threshold,
244 int axis,
double threshold,
A version of frc::GenericHID with Trigger factories for command-based.
Definition CommandGenericHID.h:19
bool IsConnected() const
Get if the HID is connected.
Trigger AxisMagnitudeGreaterThan(int axis, double threshold, frc::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance that is true when the axis magnitude value is greater than threshold,...
Trigger POVRight(frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance based around the 90 degree angle (right) of the default (index 0) POV o...
CommandGenericHID(int port)
Construct an instance of a device.
Trigger POVDown(frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance based around the 180 degree angle (down) of the default (index 0) POV o...
Trigger POV(int angle, frc::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance based around this angle of a POV on the HID.
Trigger POVCenter(frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance based around the center (not pressed) position of the default (index 0)...
Trigger POVUpRight(frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance based around the 45 degree angle (right up) of the default (index 0) PO...
Trigger Button(int button, frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs an event instance around this button's digital signal.
Trigger POVLeft(frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance based around the 270 degree angle (left) of the default (index 0) POV o...
void SetRumble(frc::GenericHID::RumbleType type, double value)
Set the rumble output for the HID.
Trigger POV(int pov, int angle, frc::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance based around this angle of a POV on the HID.
Trigger AxisLessThan(int axis, double threshold, frc::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance that is true when the axis value is less than threshold,...
Trigger POVDownLeft(frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance based around the 225 degree angle (down left) of the default (index 0) ...
Trigger POVUpLeft(frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance based around the 315 degree angle (left up) of the default (index 0) PO...
frc::GenericHID & GetHID()
Get the underlying GenericHID object.
Trigger AxisGreaterThan(int axis, double threshold, frc::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance that is true when the axis value is greater than threshold,...
Trigger POVDownRight(frc::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance based around the 135 degree angle (right down) of the default (index 0)...
Trigger POVUp(frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance based around the 0 degree angle (up) of the default (index 0) POV on th...
static CommandScheduler & GetInstance()
Returns the Scheduler instance.
This class provides an easy way to link commands to conditions.
Definition Trigger.h:32
A declarative way to bind a set of actions to a loop and execute them when the loop is polled.
Definition EventLoop.h:15
Handle input from standard HID devices connected to the Driver Station.
Definition GenericHID.h:24
RumbleType
Represents a rumble output on the Joystick.
Definition GenericHID.h:29
Definition FunctionalCommand.h:13