mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +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:
@@ -212,7 +212,7 @@ void PIDSubsystem::SetPercentTolerance(float percent) {
|
||||
*
|
||||
* @return true if the error is within the percentage tolerance of the input range
|
||||
*/
|
||||
bool PIDSubsystem::OnTarget()
|
||||
bool PIDSubsystem::OnTarget() const
|
||||
{
|
||||
return m_controller->OnTarget();
|
||||
}
|
||||
@@ -231,13 +231,13 @@ void PIDSubsystem::PIDWrite(float output)
|
||||
UsePIDOutput(output);
|
||||
}
|
||||
|
||||
double PIDSubsystem::PIDGet()
|
||||
double PIDSubsystem::PIDGet() const
|
||||
{
|
||||
return ReturnPIDInput();
|
||||
}
|
||||
|
||||
|
||||
std::string PIDSubsystem::GetSmartDashboardType(){
|
||||
std::string PIDSubsystem::GetSmartDashboardType() const {
|
||||
return "PIDCommand";
|
||||
}
|
||||
void PIDSubsystem::InitTable(ITable* table){
|
||||
|
||||
Reference in New Issue
Block a user