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