parent
f0297d946f
commit
76768d6ac4
|
@ -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;
|
||||||
|
|
|
@ -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},
|
||||||
|
|
|
@ -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 ));
|
||||||
|
|
Loading…
Reference in New Issue