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