Andrey 2023-02-24 22:10:42 -05:00
parent cd08b71b37
commit f545dc24da
2 changed files with 8 additions and 1 deletions

View File

@ -74,13 +74,19 @@ bool AntilagSystemBase::isAntilagConditionMet(int rpm) {
ALSMaxCLTCondition = isALSMaxCLTCondition();
ALSMaxThrottleIntentCondition = isALSMaxThrottleIntentCondition();
ALSSwitchCondition = isInsideALSSwitchCondition();
ALSTimerCondition = true;
/*
todo: looking for a hero to figure out unit test part of this
ALSTimerCondition = isInsideALSTimerCondition();
*/
return ALSMinRPMCondition &&
ALSMaxRPMCondition &&
ALSMinCLTCondition &&
ALSMaxCLTCondition &&
ALSMaxThrottleIntentCondition &&
ALSSwitchCondition;
ALSSwitchCondition &&
ALSTimerCondition;
}
void AntilagSystemBase::update() {

View File

@ -13,4 +13,5 @@ bit ALSTimerCondition
float fuelALSCorrection
int16_t autoscale timingALSCorrection;;"deg",{1/@@PACK_MULT_PERCENT@@}, 0, -20, 20, 2
int16_t autoscale timingALSSkip;;"deg",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 50, 2
end_struct