logging of live data structs was: data points, we are moving away from debug mode #3614
This commit is contained in:
parent
b35902ce35
commit
b95353cc12
|
@ -167,7 +167,9 @@ void EngineState::periodicFastCallback() {
|
||||||
float baseAdvance = getAdvance(rpm, ignitionLoad) * engine->ignitionState.luaTimingMult + engine->ignitionState.luaTimingAdd;
|
float baseAdvance = getAdvance(rpm, ignitionLoad) * engine->ignitionState.luaTimingMult + engine->ignitionState.luaTimingAdd;
|
||||||
float correctedIgnitionAdvance = baseAdvance
|
float correctedIgnitionAdvance = baseAdvance
|
||||||
// Pull any extra timing for knock retard
|
// Pull any extra timing for knock retard
|
||||||
+ engine->module<KnockController>()->getKnockRetard();
|
- engine->module<KnockController>()->getKnockRetard()
|
||||||
|
// Degrees of timing REMOVED from actual timing during soft RPM limit window
|
||||||
|
- getLimpManager()->getLimitingTimingRetard();
|
||||||
// these fields are scaled_channel so let's only use for observability, with a local variables holding value while it matters locally
|
// these fields are scaled_channel so let's only use for observability, with a local variables holding value while it matters locally
|
||||||
engine->ignitionState.baseIgnitionAdvance = baseAdvance;
|
engine->ignitionState.baseIgnitionAdvance = baseAdvance;
|
||||||
engine->ignitionState.correctedIgnitionAdvance = correctedIgnitionAdvance;
|
engine->ignitionState.correctedIgnitionAdvance = correctedIgnitionAdvance;
|
||||||
|
|
|
@ -100,9 +100,7 @@ static void prepareCylinderIgnitionSchedule(angle_t dwellAngleDuration, floatms_
|
||||||
|
|
||||||
angle_t correctedSparkAngle =
|
angle_t correctedSparkAngle =
|
||||||
// Negate because timing *before* TDC, and we schedule *after* TDC
|
// Negate because timing *before* TDC, and we schedule *after* TDC
|
||||||
- getEngineState()->timingAdvance[event->cylinderNumber]
|
- getEngineState()->timingAdvance[event->cylinderNumber];
|
||||||
// Degrees of timing REMOVED from actual timing during soft RPM limit window
|
|
||||||
+ getLimpManager()->getLimitingTimingRetard();
|
|
||||||
|
|
||||||
engine->ignitionState.perCylinderTiming[event->cylinderIndex] = correctedSparkAngle;
|
engine->ignitionState.perCylinderTiming[event->cylinderIndex] = correctedSparkAngle;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue