parent
fe53005888
commit
189539b51f
|
@ -67,6 +67,8 @@ struct_no_prefix engine_state_s
|
||||||
float ignitionLoad;@@GAUGE_NAME_IGNITION_LOAD@@
|
float ignitionLoad;@@GAUGE_NAME_IGNITION_LOAD@@
|
||||||
|
|
||||||
uint16_t autoscale veTableYAxis;;"%",{1/100}, 0, 0, 0, 0
|
uint16_t autoscale veTableYAxis;;"%",{1/100}, 0, 0, 0, 0
|
||||||
|
uint8_t overDwellCounter
|
||||||
|
uint8_t overDwellNotScheduledCounter
|
||||||
|
|
||||||
! engine_state_s
|
! engine_state_s
|
||||||
end_struct
|
end_struct
|
||||||
|
|
|
@ -176,6 +176,7 @@ static void overFireSparkAndPrepareNextSchedule(IgnitionEvent *event) {
|
||||||
#if SPARK_EXTREME_LOGGING
|
#if SPARK_EXTREME_LOGGING
|
||||||
efiPrintf("overFireSparkAndPrepareNextSchedule %s", event->outputs[0]->getName());
|
efiPrintf("overFireSparkAndPrepareNextSchedule %s", event->outputs[0]->getName());
|
||||||
#endif /* SPARK_EXTREME_LOGGING */
|
#endif /* SPARK_EXTREME_LOGGING */
|
||||||
|
engine->engineState.overDwellCounter++;
|
||||||
fireSparkAndPrepareNextSchedule(event);
|
fireSparkAndPrepareNextSchedule(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -404,6 +405,8 @@ static void scheduleSparkEvent(bool limitedSpark, IgnitionEvent *event,
|
||||||
// auto fire spark at 1.5x nominal dwell
|
// auto fire spark at 1.5x nominal dwell
|
||||||
efitick_t fireTime = chargeTime + MSF2NT(1.5f * dwellMs);
|
efitick_t fireTime = chargeTime + MSF2NT(1.5f * dwellMs);
|
||||||
engine->executor.scheduleByTimestampNt("overdwell", &event->sparkEvent.scheduling, fireTime, { overFireSparkAndPrepareNextSchedule, event });
|
engine->executor.scheduleByTimestampNt("overdwell", &event->sparkEvent.scheduling, fireTime, { overFireSparkAndPrepareNextSchedule, event });
|
||||||
|
} else {
|
||||||
|
engine->engineState.overDwellNotScheduledCounter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue