[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,6 +45,15 @@ public final class RobotController {
return HALUtil.getSerialNumber();
}
/**
* Return the comments from the roboRIO web interface.
*
* @return the comments from the roboRIO web interface.
*/
public static String getComments() {
return HALUtil.getComments();
}
/**
* Read the microsecond timer from the FPGA.
*

View File

@@ -543,6 +543,24 @@ public final class RoboRioSim {
RoboRioDataJNI.setSerialNumber(serialNumber);
}
/**
* Get the comments string.
*
* @return The comments string.
*/
public static String getComments() {
return RoboRioDataJNI.getComments();
}
/**
* Set the comments string.
*
* @param comments The comments string.
*/
public static void setComments(String comments) {
RoboRioDataJNI.setComments(comments);
}
/** Reset all simulation data. */
public static void resetData() {
RoboRioDataJNI.resetData();