basic pump ml calculation

This commit is contained in:
Empire
2021-12-03 18:36:10 +00:00
parent 61fad8e14c
commit d69feb4143
2 changed files with 10 additions and 6 deletions

View File

@@ -51,10 +51,14 @@ void Plant::init(void)
return (candidate >= 0);
});
this->mSetting->pPumpDuration->setDefaultValue(5);
this->mSetting->pPumpDuration->setDefaultValue(30);
this->mSetting->pPumpDuration->setValidator([](long candidate) {
return ((candidate >= 0) && (candidate <= 1000));
});
this->mSetting->pPumpMl->setDefaultValue(0);
this->mSetting->pPumpMl->setValidator([](long candidate) {
return ((candidate >= 0) && (candidate <= 5000));
});
this->mSetting->pPumpPowerLevel->setDefaultValue(100);
this->mSetting->pPumpPowerLevel->setValidator([](long candidate) {
return ((candidate >= 0) && (candidate <= 100));