This commit is contained in:
rusefi 2018-03-04 18:12:52 -05:00
parent 1e391bae8d
commit 793c4b4e61
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,11 @@ void testPlainCrankingWithoutAdvancedFeatures() {
setupSimpleTestEngineWithMafAndTT_ONE_trigger(&eth);
assertEqualsM("RPM=0", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
eth.fireTriggerEvents2(1, MS2US(200));
// still no RPM since need to cycles measure cycle duration
assertEqualsM("RPM#1", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
eth.fireTriggerEvents2(1, MS2US(200));
assertEqualsM("RPM#2", 300, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
}