parent
f0297d946f
commit
76768d6ac4
|
@ -56,11 +56,11 @@ float getIgnitionLoad() {
|
|||
*/
|
||||
void setSingleCoilDwell() {
|
||||
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->sparkDwellRpmBins[5] = 10;
|
||||
engineConfiguration->sparkDwellRpmBins[5] = 500;
|
||||
engineConfiguration->sparkDwellValues[5] = 4;
|
||||
|
||||
engineConfiguration->sparkDwellRpmBins[6] = 4500;
|
||||
|
|
|
@ -895,7 +895,7 @@ const plain_get_integer_s getI_plain[] = {
|
|||
// {"timing_mode", setTimingMode},
|
||||
// {"engine_type", setEngineType},
|
||||
{"warning_period", (int*)&engineConfiguration->warningPeriod},
|
||||
{"hard_limit", &engineConfiguration->rpmHardLimit},
|
||||
// {"hard_limit", &engineConfiguration->rpmHardLimit},
|
||||
// {"firing_order", setFiringOrder},
|
||||
// {"injection_pin_mode", setInjectionPinMode},
|
||||
// {"ignition_pin_mode", setIgnitionPinMode},
|
||||
|
|
|
@ -42,7 +42,7 @@ TEST(Multispark, EnabledNoMaxRpm) {
|
|||
multisparkCfg();
|
||||
|
||||
// Practically no RPM limit
|
||||
engineConfiguration->multisparkMaxRpm = 65000;
|
||||
engineConfiguration->multisparkMaxRpm = 12500;
|
||||
|
||||
EXPECT_EQ(0, getMultiSparkCount(0 ));
|
||||
EXPECT_EQ(10, getMultiSparkCount(150 ));
|
||||
|
|
Loading…
Reference in New Issue