12 #include "hal/DriverStationTypes.h"
13 #include "hal/Types.h"
37 int32_t
HAL_SendError(HAL_Bool isError, int32_t errorCode, HAL_Bool isLVCode,
38 const char* details,
const char* location,
39 const char* callStack, HAL_Bool printMsg);
162 int32_t leftRumble, int32_t rightRumble);
190 #ifndef HAL_USE_LABVIEW
271 #endif // HAL_USE_LABVIEW
HAL_Bool HAL_IsNewControlData(void)
Has a new control packet from the driver station arrived since the last time this function was called...
Definition: DriverStationTypes.h:90
Definition: DriverStationTypes.h:101
HAL_Bool HAL_GetJoystickIsXbox(int32_t joystickNum)
Gets is a specific joystick is considered to be an XBox controller.
int32_t HAL_GetJoystickAxisType(int32_t joystickNum, int32_t axis)
Gets the type of a specific joystick axis.
int32_t HAL_GetJoystickButtons(int32_t joystickNum, HAL_JoystickButtons *buttons)
Gets the buttons of a specific joystick.
int32_t HAL_GetJoystickType(int32_t joystickNum)
Gets the type of joystick connected.
int32_t HAL_SetJoystickOutputs(int32_t joystickNum, int64_t outputs, int32_t leftRumble, int32_t rightRumble)
Set joystick outputs.
void HAL_ReleaseDSMutex(void)
Releases the DS Mutex to allow proper shutdown of any threads that are waiting on it...
HAL_AllianceStationID HAL_GetAllianceStation(int32_t *status)
Gets the current alliance station ID.
void HAL_WaitForDSData(void)
Waits for the newest DS packet to arrive.
Definition: DriverStationTypes.h:78
int32_t HAL_GetMatchInfo(HAL_MatchInfo *info)
Gets info about a specific match.
void HAL_ObserveUserProgramStarting(void)
Sets the program starting flag in the DS.
char * HAL_GetJoystickName(int32_t joystickNum)
Gets the name of a joystick.
void HAL_ObserveUserProgramAutonomous(void)
Sets the autonomous enabled flag in the DS.
HAL_Bool HAL_WaitForDSDataTimeout(double timeout)
Waits for the newest DS packet to arrive.
int32_t HAL_GetJoystickDescriptor(int32_t joystickNum, HAL_JoystickDescriptor *desc)
Retrieves the Joystick Descriptor for particular slot.
void HAL_ObserveUserProgramTest(void)
Sets the test mode flag in the DS.
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.
void HAL_ObserveUserProgramDisabled(void)
Sets the disabled flag in the DS.
int32_t HAL_GetJoystickAxes(int32_t joystickNum, HAL_JoystickAxes *axes)
Gets the axes of a specific joystick.
void HAL_ObserveUserProgramTeleop(void)
Sets the teleoperated enabled flag in the DS.
void HAL_InitializeDriverStation(void)
Initializes the driver station communication.
void HAL_FreeJoystickName(char *name)
Frees a joystick name received with HAL_GetJoystickName.
int32_t HAL_GetJoystickPOVs(int32_t joystickNum, HAL_JoystickPOVs *povs)
Gets the POVs of a specific joystick.
double HAL_GetMatchTime(int32_t *status)
Returns the approximate match time.
Definition: DriverStationTypes.h:35
Definition: DriverStationTypes.h:72
int32_t HAL_GetControlWord(HAL_ControlWord *controlWord)
Gets the current control word of the driver station.