[hal, wpilib] Add RobotController.getComments() (#4463)

This commit is contained in:
Ryan Blue
2022-12-26 14:39:51 -05:00
committed by GitHub
parent 26bdbf3d41
commit 2ac41f3edc
19 changed files with 310 additions and 1 deletions

View File

@@ -42,6 +42,19 @@ size_t HALSIM_GetRoboRioSerialNumber(char* buffer, size_t size) {
}
void HALSIM_SetRoboRioSerialNumber(const char* buffer, size_t size) {}
int32_t HALSIM_RegisterRoboRioCommentsCallback(
HAL_RoboRioStringCallback callback, void* param, HAL_Bool initialNotify) {
return 0;
}
void HALSIM_CancelRoboRioCommentsCallback(int32_t uid) {}
size_t HALSIM_GetRoboRioComments(char* buffer, size_t size) {
if (size > 0) {
buffer[0] = '\0';
}
return 0;
}
void HALSIM_SetRoboRioComments(const char* buffer, size_t size) {}
void HALSIM_RegisterRoboRioAllCallbacks(HAL_NotifyCallback callback,
void* param, HAL_Bool initialNotify) {}
} // extern "C"