Add Integral Reset Action to PIDClimate (#1104)

This commit is contained in:
Carlos Gustavo Sarmiento
2020-07-09 18:25:46 -05:00
committed by GitHub
parent 7a16f846eb
commit 33212d1abf
4 changed files with 28 additions and 0 deletions
+2
View File
@@ -40,6 +40,8 @@ struct PIDController {
return proportional_term + integral_term + derivative_term;
}
void reset_accumulated_integral() { accumulated_integral_ = 0; }
/// Proportional gain K_p.
float kp = 0;
/// Integral gain K_i.