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:
Tyler Veness
2015-06-19 17:23:54 -07:00
parent c6b790cadd
commit 5598445a67
172 changed files with 1165 additions and 1140 deletions

View File

@@ -137,7 +137,7 @@ void PWM::SetPosition(float pos)
*
* @return The position the servo is set to between 0.0 and 1.0.
*/
float PWM::GetPosition()
float PWM::GetPosition() const
{
float value = impl->Get();
if (value < 0.0)
@@ -194,7 +194,7 @@ void PWM::SetSpeed(float speed)
*
* @return The most recently set speed between -1.0 and 1.0.
*/
float PWM::GetSpeed()
float PWM::GetSpeed() const
{
float value = impl->Get();
if (value > 1.0)
@@ -259,7 +259,7 @@ void PWM::StopLiveWindowMode() {
}
}
std::string PWM::GetSmartDashboardType() {
std::string PWM::GetSmartDashboardType() const {
return "Speed Controller";
}
@@ -268,6 +268,6 @@ void PWM::InitTable(ITable *subTable) {
UpdateTable();
}
ITable * PWM::GetTable() {
ITable * PWM::GetTable() const {
return m_table;
}