49 .GetDefaultButtonLoop())
const;
89 .GetDefaultButtonLoop())
const;
102 .GetDefaultButtonLoop())
const;
115 .GetDefaultButtonLoop())
const;
139 .GetDefaultButtonLoop())
const;
152 .GetDefaultButtonLoop())
const;
165 .GetDefaultButtonLoop())
const;
178 .GetDefaultButtonLoop())
const;
191 .GetDefaultButtonLoop())
const;
207 int axis,
double threshold,
225 int axis,
double threshold,
240 int axis,
double threshold,
A version of frc::GenericHID with Trigger factories for command-based.
Definition CommandGenericHID.h:21
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 right direction of the default (index 0) POV on the HI...
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 down direction of the default (index 0) 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 up right direction of the default (index 0) POV on the...
Trigger Button(int button, frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs an event instance around this button's digital signal.
Trigger POV(int pov, frc::DriverStation::POVDirection angle, frc::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance based around this angle of a POV on the HID.
Trigger POVLeft(frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance based around the left direction of the default (index 0) POV on the HID...
void SetRumble(frc::GenericHID::RumbleType type, double value)
Set the rumble output for 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 POV(frc::DriverStation::POVDirection angle, frc::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance based around this angle of a POV on the HID.
Trigger POVDownLeft(frc::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 POVUpLeft(frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance based around the up left direction of the default (index 0) POV on the ...
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 down right direction of the default (index 0) POV on t...
Trigger POVUp(frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance based around the up direction of the default (index 0) POV on the HID.
static CommandScheduler & GetInstance()
Returns the Scheduler instance.
This class provides an easy way to link commands to conditions.
Definition Trigger.h:32
POVDirection
A controller POV direction.
Definition DriverStation.h:55
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:26
RumbleType
Represents a rumble output on the Joystick.
Definition GenericHID.h:31
Definition FunctionalCommand.h:13