[wpilib] RobotController: Add isSystemTimeValid() (#5696)

This returns true when the system date/time (wall clock) is valid.
This commit is contained in:
Peter Johnson
2023-09-30 09:22:51 -07:00
committed by GitHub
parent e56f1a3632
commit d404af5f24
9 changed files with 65 additions and 1 deletions

View File

@@ -121,6 +121,15 @@ public final class RobotController {
return HAL.getRSLState();
}
/**
* Gets if the system time is valid.
*
* @return True if the system time is valid, false otherwise
*/
public static boolean isSystemTimeValid() {
return HAL.getSystemTimeValid();
}
/**
* Get the input voltage to the robot controller.
*