mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +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:
@@ -72,12 +72,12 @@ void PIDCommand::PIDWrite(float output)
|
||||
UsePIDOutput(output);
|
||||
}
|
||||
|
||||
double PIDCommand::PIDGet()
|
||||
double PIDCommand::PIDGet() const
|
||||
{
|
||||
return ReturnPIDInput();
|
||||
}
|
||||
|
||||
PIDController *PIDCommand::GetPIDController()
|
||||
PIDController *PIDCommand::GetPIDController() const
|
||||
{
|
||||
return m_controller;
|
||||
}
|
||||
@@ -87,17 +87,17 @@ void PIDCommand::SetSetpoint(double setpoint)
|
||||
m_controller->SetSetpoint(setpoint);
|
||||
}
|
||||
|
||||
double PIDCommand::GetSetpoint()
|
||||
double PIDCommand::GetSetpoint() const
|
||||
{
|
||||
return m_controller->GetSetpoint();
|
||||
}
|
||||
|
||||
double PIDCommand::GetPosition()
|
||||
double PIDCommand::GetPosition() const
|
||||
{
|
||||
return ReturnPIDInput();
|
||||
}
|
||||
|
||||
std::string PIDCommand::GetSmartDashboardType(){
|
||||
std::string PIDCommand::GetSmartDashboardType() const {
|
||||
return "PIDCommand";
|
||||
}
|
||||
void PIDCommand::InitTable(ITable* table){
|
||||
|
||||
Reference in New Issue
Block a user