WPI_Handle WPI_EventHandle
An event handle.
Definition: Synchronization.h:25
Provide access to the network communication data to / from the Driver Station.
Definition: DriverStation.h:22
static Alliance GetAlliance()
Return the alliance that the driver station says it is on from the FMS.
static std::string GetGameSpecificMessage()
Returns the game specific message provided by the FMS.
static int GetReplayNumber()
Returns the number of times the current match has been replayed from the FMS.
static int GetLocation()
Return the driver station location from the FMS.
static int GetStickButtons(int stick)
The state of the buttons on the joystick.
static bool IsDSAttached()
Check if the DS is attached.
static std::string GetEventName()
Returns the name of the competition event provided by the FMS.
static double GetStickAxis(int stick, int axis)
Get the value of the axis on a joystick.
static std::string GetJoystickName(int stick)
Returns the name of the joystick at the given port.
static bool IsTeleopEnabled()
Check if the DS is commanding teleop mode and if it has enabled the robot.
static bool IsTest()
Check if the DS is commanding test mode.
static bool IsDisabled()
Check if the robot is disabled.
Alliance
Definition: DriverStation.h:24
@ kBlue
Definition: DriverStation.h:24
@ kRed
Definition: DriverStation.h:24
@ kInvalid
Definition: DriverStation.h:24
static MatchType GetMatchType()
Returns the type of match being played provided by the FMS.
static int GetStickAxisCount(int stick)
Returns the number of axes on a given joystick port.
static bool IsAutonomousEnabled()
Check if the DS is commanding autonomous mode and if it has enabled the robot.
static void RemoveRefreshedDataEventHandle(WPI_EventHandle handle)
static bool IsJoystickConnected(int stick)
Returns if a joystick is connected to the Driver Station.
static int GetJoystickType(int stick)
Returns the type of joystick at a given port.
static bool IsTeleop()
Check if the DS is commanding teleop mode.
static bool GetJoystickIsXbox(int stick)
Returns a boolean indicating if the controller is an xbox controller.
static bool IsEnabled()
Check if the DS has enabled the robot.
MatchType
Definition: DriverStation.h:25
@ kQualification
Definition: DriverStation.h:25
@ kPractice
Definition: DriverStation.h:25
@ kElimination
Definition: DriverStation.h:25
@ kNone
Definition: DriverStation.h:25
static bool GetStickButtonReleased(int stick, int button)
Whether one joystick button was released since the last check.
static bool IsJoystickConnectionWarningSilenced()
Returns whether joystick connection warnings are silenced.
static bool IsAutonomous()
Check if the DS is commanding autonomous mode.
static int GetJoystickAxisType(int stick, int axis)
Returns the types of Axes on a given joystick port.
static bool GetStickButton(int stick, int button)
The state of one joystick button.
static void StartDataLog(wpi::log::DataLog &log, bool logJoysticks=true)
Starts logging DriverStation data to data log.
static int GetStickPOV(int stick, int pov)
Get the state of a POV on the joystick.
static void RefreshData()
static double GetBatteryVoltage()
Read the battery voltage.
static bool IsTestEnabled()
Check if the DS is commanding Test mode and if it has enabled the robot.
static void SilenceJoystickConnectionWarning(bool silence)
Allows the user to specify whether they want joystick connection warnings to be printed to the consol...
static bool IsEStopped()
Check if the robot is e-stopped.
static double GetMatchTime()
Return the approximate match time.
static int GetStickButtonCount(int stick)
Returns the number of buttons on a given joystick port.
static int GetStickPOVCount(int stick)
Returns the number of POVs on a given joystick port.
static constexpr int kJoystickPorts
Definition: DriverStation.h:27
static void ProvideRefreshedDataEventHandle(WPI_EventHandle handle)
static bool IsFMSAttached()
Is the driver station attached to a Field Management System?
static int GetMatchNumber()
Returns the match number provided by the FMS.
static bool GetStickButtonPressed(int stick, int button)
Whether one joystick button was pressed since the last check.
A data log.
Definition: DataLog.h:66
dimensionless::scalar_t log(const ScalarUnit x) noexcept
Compute natural logarithm.
Definition: math.h:349
Definition: AprilTagFieldLayout.h:22
Definition: ntcore_cpp.h:30