StateHandler: simple fan speed adjustment. pid() needs improvments

This commit is contained in:
Evgenii Meshcheriakov
2022-10-19 16:46:32 +03:00
parent 290c73f358
commit 0d70f8b464
3 changed files with 18 additions and 9 deletions

View File

@@ -109,7 +109,7 @@ private:
* weigh of fan, so voltage within range of 0-89 is not
* sufficient to start motor.
* TODO: Value 89 should be scaled to 0 at some point */
Counter fan_speed = {89, 1000};
Counter fan_speed = {20, 1000};
/*integral controller for PID. should be global, since it
* accumulates error signals encountered since startup*/
int integral = 0;