better field name

This commit is contained in:
rusefi 2019-01-11 01:18:35 -05:00
parent 255f85e707
commit d47afe0524
4 changed files with 6 additions and 9 deletions

View File

@ -102,8 +102,8 @@ void testMafLookup(void) {
assertEqualsM("@255", 738, engine->mafDecodingLookup[255]); assertEqualsM("@255", 738, engine->mafDecodingLookup[255]);
} }
float unitTestValue = 0; float mockMapValue = 0;
float getMap(void) { float getMap(void) {
return unitTestValue; return mockMapValue;
} }

View File

@ -22,12 +22,12 @@ void testPlainCrankingWithoutAdvancedFeatures() {
setupSimpleTestEngineWithMafAndTT_ONE_trigger(&eth); setupSimpleTestEngineWithMafAndTT_ONE_trigger(&eth);
assertEqualsM("RPM=0", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE)); assertEqualsM("RPM=0", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
eth.fireTriggerEventsWithDuration(200); eth.fireTriggerEventsWithDuration(/* durationMs */ 200);
// still no RPM since need to cycles measure cycle duration // still no RPM since need to cycles measure cycle duration
assertEqualsM("RPM#1", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE)); assertEqualsM("RPM#1", 0, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
eth.fireRise(200); eth.fireRise(/* delayMs */ 200);
assertEqualsM("RPM#2", 300, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE)); assertEqualsM("RPM#2", 300, engine->rpmCalculator.getRpm(PASS_ENGINE_PARAMETER_SIGNATURE));
// two simultaneous injections // two simultaneous injections
assertEqualsM("plain#2", 4, engine->executor.size()); assertEqualsM("plain#2", 4, engine->executor.size());

View File

@ -32,7 +32,7 @@
#include "trigger_universal.h" #include "trigger_universal.h"
extern int timeNowUs; extern int timeNowUs;
extern float unitTestValue; extern float mockMapValue;
extern float testMafValue; extern float testMafValue;
extern int unitTestWarningCounter; extern int unitTestWarningCounter;
extern bool printTriggerDebug; extern bool printTriggerDebug;
@ -984,7 +984,7 @@ void testFuelSchedulerBug299smallAndMedium(void) {
eth.executeActions(); eth.executeActions();
unitTestValue = 0; mockMapValue = 0;
testMafValue = 0; testMafValue = 0;
} }

View File

@ -22,9 +22,6 @@
#include "trigger_universal.h" #include "trigger_universal.h"
extern int timeNowUs; extern int timeNowUs;
extern float unitTestValue;
extern float testMafValue;
extern int unitTestWarningCounter;
extern bool printTriggerDebug; extern bool printTriggerDebug;
extern float actualSynchGap; extern float actualSynchGap;