mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +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:
@@ -717,17 +717,17 @@ void RobotDrive::SetExpiration(float timeout)
|
||||
m_safetyHelper->SetExpiration(timeout);
|
||||
}
|
||||
|
||||
float RobotDrive::GetExpiration()
|
||||
float RobotDrive::GetExpiration() const
|
||||
{
|
||||
return m_safetyHelper->GetExpiration();
|
||||
}
|
||||
|
||||
bool RobotDrive::IsAlive()
|
||||
bool RobotDrive::IsAlive() const
|
||||
{
|
||||
return m_safetyHelper->IsAlive();
|
||||
}
|
||||
|
||||
bool RobotDrive::IsSafetyEnabled()
|
||||
bool RobotDrive::IsSafetyEnabled() const
|
||||
{
|
||||
return m_safetyHelper->IsSafetyEnabled();
|
||||
}
|
||||
@@ -737,7 +737,7 @@ void RobotDrive::SetSafetyEnabled(bool enabled)
|
||||
m_safetyHelper->SetSafetyEnabled(enabled);
|
||||
}
|
||||
|
||||
void RobotDrive::GetDescription(char *desc)
|
||||
void RobotDrive::GetDescription(char *desc) const
|
||||
{
|
||||
sprintf(desc, "RobotDrive");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user