WPILibC++ 2027.0.0-alpha-5
Loading...
Searching...
No Matches
wpi::DriverStation Class Referencefinal

Provides access to Driver Station functionality. More...

#include <wpi/driverstation/DriverStation.hpp>

Public Member Functions

 DriverStation ()=delete

Static Public Member Functions

static void StartDataLog (wpi::log::DataLog &log)
 Starts logging DriverStation data to data log, including joystick data.
static void StartDataLog (wpi::log::DataLog &log, bool logJoysticks)
 Starts logging DriverStation data to data log.
static void ProvideRefreshedDataEventHandle (WPI_EventHandle handle)
 Registers the given handle for DS data refresh notifications.
static void RemoveRefreshedDataEventHandle (WPI_EventHandle handle)
 Unregisters the given handle from DS data refresh notifications.

Detailed Description

Provides access to Driver Station functionality.

Constructor & Destructor Documentation

◆ DriverStation()

wpi::DriverStation::DriverStation ( )
delete

Member Function Documentation

◆ ProvideRefreshedDataEventHandle()

void wpi::DriverStation::ProvideRefreshedDataEventHandle ( WPI_EventHandle handle)
inlinestatic

Registers the given handle for DS data refresh notifications.

Parameters
handleThe event handle.

◆ RemoveRefreshedDataEventHandle()

void wpi::DriverStation::RemoveRefreshedDataEventHandle ( WPI_EventHandle handle)
inlinestatic

Unregisters the given handle from DS data refresh notifications.

Parameters
handleThe event handle.

◆ StartDataLog() [1/2]

void wpi::DriverStation::StartDataLog ( wpi::log::DataLog & log)
inlinestatic

Starts logging DriverStation data to data log, including joystick data.

Repeated calls are ignored.

Parameters
logdata log

◆ StartDataLog() [2/2]

void wpi::DriverStation::StartDataLog ( wpi::log::DataLog & log,
bool logJoysticks )
inlinestatic

Starts logging DriverStation data to data log.

Repeated calls are ignored.

Parameters
logdata log
logJoysticksif true, log joystick data

The documentation for this class was generated from the following file: