Renamed DriverStation::IsSysBrownedOut() to DriverStation::IsBrownedOut() to match the Java version. This changes the external API. (#67)

This commit is contained in:
Tyler Veness
2016-05-25 23:09:24 -07:00
committed by Peter Johnson
parent e9718fc7bf
commit 305ab08f1c
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ class DriverStation : public SensorBase, public RobotStateInterface {
bool IsNewControlData() const;
bool IsFMSAttached() const;
bool IsSysActive() const;
bool IsSysBrownedOut() const;
bool IsBrownedOut() const;
Alliance GetAlliance() const;
uint32_t GetLocation() const;

View File

@@ -463,7 +463,7 @@ bool DriverStation::IsSysActive() const {
*
* @return True if the system is browned out
*/
bool DriverStation::IsSysBrownedOut() const {
bool DriverStation::IsBrownedOut() const {
int32_t status = 0;
bool retVal = HALGetBrownedOut(&status);
wpi_setErrorWithContext(status, getHALErrorMessage(status));