WPILibC++ 2024.3.2
|
#include <stdint.h>
#include <stddef.h>
#include <wpi/Synchronization.h>
#include "hal/DriverStationTypes.h"
#include "hal/Types.h"
Go to the source code of this file.
Functions | |
int32_t | HAL_SendError (HAL_Bool isError, int32_t errorCode, HAL_Bool isLVCode, const char *details, const char *location, const char *callStack, HAL_Bool printMsg) |
Sends an error to the driver station. More... | |
void | HAL_SetPrintErrorImpl (void(*func)(const char *line, size_t size)) |
Set the print function used by HAL_SendError. More... | |
int32_t | HAL_SendConsoleLine (const char *line) |
Sends a line to the driver station console. More... | |
int32_t | HAL_GetControlWord (HAL_ControlWord *controlWord) |
Gets the current control word of the driver station. More... | |
HAL_AllianceStationID | HAL_GetAllianceStation (int32_t *status) |
Gets the current alliance station ID. More... | |
int32_t | HAL_GetJoystickAxes (int32_t joystickNum, HAL_JoystickAxes *axes) |
Gets the axes of a specific joystick. More... | |
int32_t | HAL_GetJoystickPOVs (int32_t joystickNum, HAL_JoystickPOVs *povs) |
Gets the POVs of a specific joystick. More... | |
int32_t | HAL_GetJoystickButtons (int32_t joystickNum, HAL_JoystickButtons *buttons) |
Gets the buttons of a specific joystick. More... | |
void | HAL_GetAllJoystickData (HAL_JoystickAxes *axes, HAL_JoystickPOVs *povs, HAL_JoystickButtons *buttons) |
int32_t | HAL_GetJoystickDescriptor (int32_t joystickNum, HAL_JoystickDescriptor *desc) |
Retrieves the Joystick Descriptor for particular slot. More... | |
HAL_Bool | HAL_GetJoystickIsXbox (int32_t joystickNum) |
Gets whether a specific joystick is considered to be an XBox controller. More... | |
int32_t | HAL_GetJoystickType (int32_t joystickNum) |
Gets the type of joystick connected. More... | |
char * | HAL_GetJoystickName (int32_t joystickNum) |
Gets the name of a joystick. More... | |
void | HAL_FreeJoystickName (char *name) |
Frees a joystick name received with HAL_GetJoystickName. More... | |
int32_t | HAL_GetJoystickAxisType (int32_t joystickNum, int32_t axis) |
Gets the type of a specific joystick axis. More... | |
int32_t | HAL_SetJoystickOutputs (int32_t joystickNum, int64_t outputs, int32_t leftRumble, int32_t rightRumble) |
Set joystick outputs. More... | |
double | HAL_GetMatchTime (int32_t *status) |
Return the approximate match time. More... | |
HAL_Bool | HAL_GetOutputsEnabled (void) |
Gets if outputs are enabled by the control system. More... | |
int32_t | HAL_GetMatchInfo (HAL_MatchInfo *info) |
Gets info about a specific match. More... | |
HAL_Bool | HAL_RefreshDSData (void) |
Refresh the DS control word. More... | |
void | HAL_ProvideNewDataEventHandle (WPI_EventHandle handle) |
void | HAL_RemoveNewDataEventHandle (WPI_EventHandle handle) |
void | HAL_ObserveUserProgramStarting (void) |
Sets the program starting flag in the DS. More... | |
void | HAL_ObserveUserProgramDisabled (void) |
Sets the disabled flag in the DS. More... | |
void | HAL_ObserveUserProgramAutonomous (void) |
Sets the autonomous enabled flag in the DS. More... | |
void | HAL_ObserveUserProgramTeleop (void) |
Sets the teleoperated enabled flag in the DS. More... | |
void | HAL_ObserveUserProgramTest (void) |
Sets the test mode flag in the DS. More... | |