[wpilib, hal] Add function to read the RSL state (#5312)

This commit is contained in:
Ryan Blue
2023-05-13 00:30:19 -04:00
committed by GitHub
parent 7a90475eec
commit 463a90f1df
8 changed files with 59 additions and 0 deletions

View File

@@ -103,6 +103,15 @@ public final class RobotController {
return HAL.getBrownedOut();
}
/**
* Gets the current state of the Robot Signal Light (RSL).
*
* @return The current state of the RSL- true if on, false if off
*/
public static boolean getRSLState() {
return HAL.getRSLState();
}
/**
* Get the input voltage to the robot controller.
*