mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilib, hal] Add function to read the RSL state (#5312)
This commit is contained in:
@@ -76,6 +76,13 @@ bool RobotController::IsBrownedOut() {
|
||||
return retVal;
|
||||
}
|
||||
|
||||
bool RobotController::GetRSLState() {
|
||||
int32_t status = 0;
|
||||
bool retVal = HAL_GetRSLState(&status);
|
||||
FRC_CheckErrorStatus(status, "GetRSLState");
|
||||
return retVal;
|
||||
}
|
||||
|
||||
double RobotController::GetInputVoltage() {
|
||||
int32_t status = 0;
|
||||
double retVal = HAL_GetVinVoltage(&status);
|
||||
|
||||
Reference in New Issue
Block a user