mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
fixing successful retry behaviour
This commit is contained in:
parent
bfa3254d6c
commit
9491f3d100
@ -113,13 +113,14 @@ PIDAutotuner::PIDAutotuneResult PIDAutotuner::update(float setpoint, float proce
|
|||||||
|
|
||||||
if (this->enough_data_phase_ == 0) {
|
if (this->enough_data_phase_ == 0) {
|
||||||
this->enough_data_phase_ = phase;
|
this->enough_data_phase_ = phase;
|
||||||
} else if (phase - this->enough_data_phase_ <= 6) {
|
}
|
||||||
|
//
|
||||||
|
if (phase - this->enough_data_phase_ <= 6) {
|
||||||
// keep trying for at least 6 more phases
|
// keep trying for at least 6 more phases
|
||||||
return res;
|
return res;
|
||||||
} else {
|
}
|
||||||
// proceed to calculating PID parameters
|
// proceed to calculating PID parameters
|
||||||
// warning will be shown in "Checks" section
|
// warning will be shown in "Checks" section
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ESP_LOGI(TAG, "%s: PID Autotune finished!", this->id_.c_str());
|
ESP_LOGI(TAG, "%s: PID Autotune finished!", this->id_.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user