mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[hal, wpilib] Add RobotController.getComments() (#4463)
This commit is contained in:
@@ -35,6 +35,12 @@ std::string RobotController::GetSerialNumber() {
|
||||
return std::string(serialNum, len);
|
||||
}
|
||||
|
||||
std::string RobotController::GetComments() {
|
||||
char comments[65];
|
||||
size_t len = HAL_GetComments(comments, sizeof(comments));
|
||||
return std::string(comments, len);
|
||||
}
|
||||
|
||||
uint64_t RobotController::GetFPGATime() {
|
||||
int32_t status = 0;
|
||||
uint64_t time = HAL_GetFPGATime(&status);
|
||||
|
||||
Reference in New Issue
Block a user