[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

@@ -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);