mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[hal, wpilib] Add RobotController.getComments() (#4463)
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user