mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Improve const correctness.
See https://usfirst.collab.net/sf/tracker/do/viewArtifact/projects.wpilib/tracker.4_defects/artf4148 Change-Id: I47b0d5a91fd49e47e2c7348b0705e998ec815682
This commit is contained in:
@@ -50,7 +50,7 @@ RobotBase::~RobotBase()
|
||||
* Determine if the Robot is currently enabled.
|
||||
* @return True if the Robot is currently enabled by the field controls.
|
||||
*/
|
||||
bool RobotBase::IsEnabled()
|
||||
bool RobotBase::IsEnabled() const
|
||||
{
|
||||
return m_ds->IsEnabled();
|
||||
}
|
||||
@@ -59,7 +59,7 @@ bool RobotBase::IsEnabled()
|
||||
* Determine if the Robot is currently disabled.
|
||||
* @return True if the Robot is currently disabled by the field controls.
|
||||
*/
|
||||
bool RobotBase::IsDisabled()
|
||||
bool RobotBase::IsDisabled() const
|
||||
{
|
||||
return m_ds->IsDisabled();
|
||||
}
|
||||
@@ -68,7 +68,7 @@ bool RobotBase::IsDisabled()
|
||||
* Determine if the robot is currently in Autnomous mode.
|
||||
* @return True if the robot is currently operating Autonomously as determined by the field controls.
|
||||
*/
|
||||
bool RobotBase::IsAutonomous()
|
||||
bool RobotBase::IsAutonomous() const
|
||||
{
|
||||
return m_ds->IsAutonomous();
|
||||
}
|
||||
@@ -77,7 +77,7 @@ bool RobotBase::IsAutonomous()
|
||||
* Determine if the robot is currently in Operator Control mode.
|
||||
* @return True if the robot is currently operating in Tele-Op mode as determined by the field controls.
|
||||
*/
|
||||
bool RobotBase::IsOperatorControl()
|
||||
bool RobotBase::IsOperatorControl() const
|
||||
{
|
||||
return m_ds->IsOperatorControl();
|
||||
}
|
||||
@@ -86,7 +86,7 @@ bool RobotBase::IsOperatorControl()
|
||||
* Determine if the robot is currently in Test mode.
|
||||
* @return True if the robot is currently running tests as determined by the field controls.
|
||||
*/
|
||||
bool RobotBase::IsTest()
|
||||
bool RobotBase::IsTest() const
|
||||
{
|
||||
return m_ds->IsTest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user