state-handler: on large scale equipment scale for fan is normal: 0-1000. No needs in normalization
This commit is contained in:
parent
a8bb6e44ff
commit
39a114d9fa
@ -124,7 +124,7 @@ private:
|
||||
* sufficient to start motor.
|
||||
* TODO: Value 89 should be scaled to 0 at some point
|
||||
*/
|
||||
Counter fan_speed = { 80, 1000 };
|
||||
Counter fan_speed = { 0, 1000 };
|
||||
|
||||
/* Integral controller for PID. should be global, since it
|
||||
* accumulates error signals encountered since startup
|
||||
|
||||
@ -117,7 +117,7 @@ StateHandler::stateManual (const Event &event)
|
||||
switch (event.type)
|
||||
{
|
||||
case Event::eEnter:
|
||||
this->A01->write (fan_speed_normalized ());
|
||||
this->A01->write (fan_speed.getCurrent ());
|
||||
break;
|
||||
case Event::eExit:
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user