|
| | CommandPS4Controller (int port) |
| | Construct an instance of a controller.
|
| |
| frc::PS4Controller & | GetHID () |
| | Get the underlying GenericHID object.
|
| |
| Trigger | Square (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the square button's digital signal.
|
| |
| Trigger | Cross (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the cross button's digital signal.
|
| |
| Trigger | Circle (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the circle button's digital signal.
|
| |
| Trigger | Triangle (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the triangle button's digital signal.
|
| |
| Trigger | L1 (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the left trigger 1 button's digital signal.
|
| |
| Trigger | R1 (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the right trigger 1 button's digital signal.
|
| |
| Trigger | L2 (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the left trigger 2 button's digital signal.
|
| |
| Trigger | R2 (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the right trigger 2 button's digital signal.
|
| |
| Trigger | Share (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the share button's digital signal.
|
| |
| Trigger | Options (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the options button's digital signal.
|
| |
| Trigger | L3 (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the L3 (left stick) button's digital signal.
|
| |
| Trigger | R3 (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the R3 (right stick) button's digital signal.
|
| |
| Trigger | PS (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the PlayStation button's digital signal.
|
| |
| Trigger | Touchpad (frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs a Trigger instance around the touchpad button's digital signal.
|
| |
| double | GetLeftX () const |
| | Get the X axis value of left side of the controller.
|
| |
| double | GetLeftY () const |
| | Get the Y axis value of left side of the controller.
|
| |
| double | GetRightX () const |
| | Get the X axis value of right side of the controller.
|
| |
| double | GetRightY () const |
| | Get the Y axis value of right side of the controller.
|
| |
| double | GetL2Axis () const |
| | Get the left trigger 2 axis value of the controller.
|
| |
| double | GetR2Axis () const |
| | Get the right trigger 2 axis value of the controller.
|
| |
Public Member Functions inherited from frc2::CommandGenericHID |
| | CommandGenericHID (int port) |
| | Construct an instance of a device.
|
| |
| frc::GenericHID & | GetHID () |
| | Get the underlying GenericHID object.
|
| |
| Trigger | Button (int button, frc::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const |
| | Constructs an event instance around this button's digital signal.
|
| |
| 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 | 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 | 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 the HID.
|
| |
| 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) POV on the HID.
|
| |
| 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 on the HID.
|
| |
| 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) POV on the HID.
|
| |
| 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 on the HID.
|
| |
| 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) POV on the HID.
|
| |
| 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 on the HID.
|
| |
| 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) 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) 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, attached to the default command scheduler button loop.
|
| |
| 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, attached to the default command scheduler button loop.
|
| |
| 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, attached to the given loop.
|
| |
| void | SetRumble (frc::GenericHID::RumbleType type, double value) |
| | Set the rumble output for the HID.
|
| |
| bool | IsConnected () const |
| | Get if the HID is connected.
|
| |
A version of frc::PS4Controller with Trigger factories for command-based.
- See also
- frc::PS4Controller