refactoring: better field name
This commit is contained in:
parent
ba9de596d6
commit
37e08a32b4
|
@ -280,12 +280,12 @@ void rpmShaftPositionCallback(trigger_event_e ckpSignalType,
|
||||||
// Replace 'normal' RPM with instant RPM for the initial spin-up period
|
// Replace 'normal' RPM with instant RPM for the initial spin-up period
|
||||||
engine->triggerCentral.triggerState.movePreSynchTimestamps(PASS_ENGINE_PARAMETER_SIGNATURE);
|
engine->triggerCentral.triggerState.movePreSynchTimestamps(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
int prevIndex;
|
int prevIndex;
|
||||||
int iRpm = engine->triggerCentral.triggerState.calculateInstantRpm(&prevIndex, nowNt PASS_ENGINE_PARAMETER_SUFFIX);
|
int instantRpm = engine->triggerCentral.triggerState.calculateInstantRpm(&prevIndex, nowNt PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
// validate instant RPM - we shouldn't skip the cranking state
|
// validate instant RPM - we shouldn't skip the cranking state
|
||||||
iRpm = minI(iRpm, CONFIG(cranking.rpm) - 1);
|
instantRpm = minI(instantRpm, CONFIG(cranking.rpm) - 1);
|
||||||
rpmState->assignRpmValue(iRpm PASS_ENGINE_PARAMETER_SUFFIX);
|
rpmState->assignRpmValue(instantRpm PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
#if 0
|
#if 0
|
||||||
scheduleMsg(logger, "** RPM: idx=%d sig=%d iRPM=%d", index, ckpSignalType, iRpm);
|
scheduleMsg(logger, "** RPM: idx=%d sig=%d iRPM=%d", index, ckpSignalType, instantRpm);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue