sporadic HighRevTest testV12 #3806

let's attempt to guess his intentions
This commit is contained in:
rusefillc 2022-01-25 17:24:25 -05:00
parent 5d385ac789
commit 30c48389c7
1 changed files with 1 additions and 4 deletions

View File

@ -76,7 +76,6 @@ public:
}
bool engineMovedRecently(efitick_t nowNt) const {
/*
constexpr float oneRevolutionLimitInSeconds = 60.0 / RPM_LOW_THRESHOLD;
auto maxAverageToothTime = oneRevolutionLimitInSeconds / triggerShape.getSize();
@ -86,9 +85,7 @@ public:
// Clamp between 0.1 seconds ("instant" for a human) and worst case of one engine cycle on low tooth count wheel
maxAllowedGap = clampF(0.1f, maxAllowedGap, oneRevolutionLimitInSeconds);
return getSecondsSinceTriggerEvent(nowNt) < maxAverageToothTime;
*/
return getSecondsSinceTriggerEvent(nowNt) < 1;
return getSecondsSinceTriggerEvent(nowNt) < maxAllowedGap;
}
bool engineMovedRecently() const {