[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

@@ -45,12 +45,19 @@ class RobotController {
static int64_t GetFPGARevision();
/**
* Returns the serial number of the roboRIO.
* Return the serial number of the roboRIO.
*
* @return The serial number of the roboRIO.
*/
static std::string GetSerialNumber();
/**
* Return the comments from the roboRIO web interface.
*
* @return The comments from the roboRIO web interface.
*/
static std::string GetComments();
/**
* Read the microsecond-resolution timer on the FPGA.
*

View File

@@ -433,6 +433,20 @@ class RoboRioSim {
*/
static void SetSerialNumber(std::string_view serialNumber);
/**
* Get the comments.
*
* @return The comments.
*/
static std::string GetComments();
/**
* Set the comments.
*
* @param comments The comments.
*/
static void SetComments(std::string_view comments);
/**
* Reset all simulation data.
*/