2 byte table axis #3045

fixing build
This commit is contained in:
Andrey 2021-12-20 01:50:23 -05:00
parent f0297d946f
commit 76768d6ac4
3 changed files with 4 additions and 4 deletions

View File

@ -56,11 +56,11 @@ float getIgnitionLoad() {
*/ */
void setSingleCoilDwell() { void setSingleCoilDwell() {
for (int i = 0; i < DWELL_CURVE_SIZE; i++) { for (int i = 0; i < DWELL_CURVE_SIZE; i++) {
engineConfiguration->sparkDwellRpmBins[i] = i + 1; engineConfiguration->sparkDwellRpmBins[i] = (i + 1) * 50;
engineConfiguration->sparkDwellValues[i] = 4; engineConfiguration->sparkDwellValues[i] = 4;
} }
engineConfiguration->sparkDwellRpmBins[5] = 10; engineConfiguration->sparkDwellRpmBins[5] = 500;
engineConfiguration->sparkDwellValues[5] = 4; engineConfiguration->sparkDwellValues[5] = 4;
engineConfiguration->sparkDwellRpmBins[6] = 4500; engineConfiguration->sparkDwellRpmBins[6] = 4500;

View File

@ -895,7 +895,7 @@ const plain_get_integer_s getI_plain[] = {
// {"timing_mode", setTimingMode}, // {"timing_mode", setTimingMode},
// {"engine_type", setEngineType}, // {"engine_type", setEngineType},
{"warning_period", (int*)&engineConfiguration->warningPeriod}, {"warning_period", (int*)&engineConfiguration->warningPeriod},
{"hard_limit", &engineConfiguration->rpmHardLimit}, // {"hard_limit", &engineConfiguration->rpmHardLimit},
// {"firing_order", setFiringOrder}, // {"firing_order", setFiringOrder},
// {"injection_pin_mode", setInjectionPinMode}, // {"injection_pin_mode", setInjectionPinMode},
// {"ignition_pin_mode", setIgnitionPinMode}, // {"ignition_pin_mode", setIgnitionPinMode},

View File

@ -42,7 +42,7 @@ TEST(Multispark, EnabledNoMaxRpm) {
multisparkCfg(); multisparkCfg();
// Practically no RPM limit // Practically no RPM limit
engineConfiguration->multisparkMaxRpm = 65000; engineConfiguration->multisparkMaxRpm = 12500;
EXPECT_EQ(0, getMultiSparkCount(0 )); EXPECT_EQ(0, getMultiSparkCount(0 ));
EXPECT_EQ(10, getMultiSparkCount(150 )); EXPECT_EQ(10, getMultiSparkCount(150 ));