wire up restoreConditionsMet #75

This commit is contained in:
Matthew Kennedy 2023-06-29 00:10:36 -07:00
parent 59430dfa91
commit e03b240e19
1 changed files with 11 additions and 1 deletions

View File

@ -87,7 +87,17 @@ bool LambdaMonitorBase::isCurrentlyGood(float rpm, float load) const {
}
bool LambdaMonitorBase::restoreConditionsMet(float rpm, float load) const {
// TODO #75
if (rpm > engineConfiguration->lambdaProtectionRestoreRpm) {
return false;
}
if (load > engineConfiguration->lambdaProtectionRestoreLoad) {
return false;
}
if (Sensor::getOrZero(SensorType::Tps1) > engineConfiguration->lambdaProtectionRestoreTps) {
return false;
}
return true;
}