mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Replaced ::std with std for readability/consistency.
Change-Id: I65f9673c237d3513f99827e28963eb22ae9df0c2
This commit is contained in:
@@ -84,7 +84,7 @@ void PIDController::Initialize(float Kp, float Ki, float Kd, float Kf,
|
||||
m_pidOutput = output;
|
||||
m_period = period;
|
||||
|
||||
m_controlLoop = ::std::make_unique<Notifier>(PIDController::CallCalculate, this);
|
||||
m_controlLoop = std::make_unique<Notifier>(PIDController::CallCalculate, this);
|
||||
m_controlLoop->StartPeriodic(m_period);
|
||||
|
||||
static int32_t instances = 0;
|
||||
@@ -491,7 +491,7 @@ std::string PIDController::GetSmartDashboardType() const {
|
||||
return "PIDController";
|
||||
}
|
||||
|
||||
void PIDController::InitTable(::std::shared_ptr<ITable> table){
|
||||
void PIDController::InitTable(std::shared_ptr<ITable> table){
|
||||
if(m_table!=nullptr)
|
||||
m_table->RemoveTableListener(this);
|
||||
m_table = table;
|
||||
@@ -506,11 +506,11 @@ void PIDController::InitTable(::std::shared_ptr<ITable> table){
|
||||
}
|
||||
}
|
||||
|
||||
::std::shared_ptr<ITable> PIDController::GetTable() const {
|
||||
std::shared_ptr<ITable> PIDController::GetTable() const {
|
||||
return m_table;
|
||||
}
|
||||
|
||||
void PIDController::ValueChanged(::std::shared_ptr<ITable> source, const std::string& key, EntryValue value, bool isNew){
|
||||
void PIDController::ValueChanged(std::shared_ptr<ITable> source, const std::string& key, EntryValue value, bool isNew){
|
||||
if (key==kP || key==kI || key==kD || key==kF) {
|
||||
if (m_P != m_table->GetNumber(kP) || m_I != m_table->GetNumber(kI) || m_D != m_table->GetNumber(kD) || m_F != m_table->GetNumber(kF) ) {
|
||||
SetPID(m_table->GetNumber(kP, 0.0), m_table->GetNumber(kI, 0.0), m_table->GetNumber(kD, 0.0), m_table->GetNumber(kF, 0.0));
|
||||
|
||||
Reference in New Issue
Block a user