StateHandler: stateAuto: fan speed control by changing pressure value. Without PID regulation.

This commit is contained in:
Evgenii Meshcheriakov
2022-10-18 17:43:13 +03:00
parent 4a414ea70f
commit 2de40ba7c0
3 changed files with 22 additions and 1 deletions

View File

@@ -105,6 +105,7 @@ private:
void SetState (state_pointer newstate);
bool current_mode;
Counter value[2] = { { 0, 100 }, { 0, 120 } };
Counter fan_speed = {80, 1000};
int saved_set_value[2] = { 0, 0 };
int saved_curr_value[2] = { 0, 0 };
LiquidCrystal *_lcd;
@@ -148,6 +149,11 @@ private:
* @param mode current mode
*/
void save (int eventValue, int counterValue, size_t mode);
/** Calculates pid for fan control value
*
*/
void pid ();
};
#endif /* STATE_HANDLER_H_ */