ignition timing clamping settings
only:atomic change around timing range
This commit is contained in:
parent
2a5772374c
commit
4fbc9d7b06
|
@ -87,6 +87,11 @@ static void prepareCylinderIgnitionSchedule(angle_t dwellAngleDuration, floatms_
|
||||||
|
|
||||||
angle_t finalIgnitionTiming = getEngineState()->timingAdvance[event->cylinderNumber];
|
angle_t finalIgnitionTiming = getEngineState()->timingAdvance[event->cylinderNumber];
|
||||||
|
|
||||||
|
// 10 ATDC ends up as 710, convert it to -10 so we can log and clamp correctly
|
||||||
|
if (finalIgnitionTiming > 360) {
|
||||||
|
finalIgnitionTiming -= 720;
|
||||||
|
}
|
||||||
|
|
||||||
engine->outputChannels.ignitionAdvanceCyl[event->cylinderIndex] = finalIgnitionTiming;
|
engine->outputChannels.ignitionAdvanceCyl[event->cylinderIndex] = finalIgnitionTiming;
|
||||||
|
|
||||||
angle_t sparkAngle =
|
angle_t sparkAngle =
|
||||||
|
|
Loading…
Reference in New Issue