Revert "reduce flash footprint by smarter code generation #4163"

This reverts commit b88c155f7a.
This commit is contained in:
rusefillc 2022-05-15 15:14:04 -04:00
parent b88c155f7a
commit eb650fe19f
1 changed files with 5 additions and 19 deletions

View File

@ -3,25 +3,11 @@
TEST(LuaBasic, configLookup) {
EngineTestHelper eth(FORD_ESCORT_GT);
{
const char * name = "ignitionDwellForCrankingMs";
setConfigValueByName(name, 1.6);
ASSERT_NEAR(1.6, getConfigValueByName(name), EPS3D);
}
{
const char * name = "launchRpm";
engineConfiguration->launchRpm = 100;
ASSERT_EQ(100.0, getConfigValueByName(name));
setConfigValueByName(name, 160);
ASSERT_EQ(150.0, getConfigValueByName(name));
}
engineConfiguration->launchRpm = 100;
ASSERT_EQ(100.0, getConfigValueByName("launchRpm"));
engineConfiguration->maxAcTps = 40;
ASSERT_EQ(40.0, getConfigValueByName("maxAcTps"));
{
const char * name = "maxAcTps";
engineConfiguration->maxAcTps = 40;
ASSERT_EQ(40.0, getConfigValueByName(name));
setConfigValueByName(name, 103);
ASSERT_EQ(103.0, getConfigValueByName(name));
}
}