logging of live data structs was: data points, we are moving away from debug mode #3614

This commit is contained in:
Andrey 2023-04-12 17:31:00 -04:00
parent b35902ce35
commit b95353cc12
2 changed files with 4 additions and 4 deletions

View File

@ -167,7 +167,9 @@ void EngineState::periodicFastCallback() {
float baseAdvance = getAdvance(rpm, ignitionLoad) * engine->ignitionState.luaTimingMult + engine->ignitionState.luaTimingAdd;
float correctedIgnitionAdvance = baseAdvance
// 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
engine->ignitionState.baseIgnitionAdvance = baseAdvance;
engine->ignitionState.correctedIgnitionAdvance = correctedIgnitionAdvance;

View File

@ -100,9 +100,7 @@ static void prepareCylinderIgnitionSchedule(angle_t dwellAngleDuration, floatms_
angle_t correctedSparkAngle =
// Negate because timing *before* TDC, and we schedule *after* TDC
- getEngineState()->timingAdvance[event->cylinderNumber]
// Degrees of timing REMOVED from actual timing during soft RPM limit window
+ getLimpManager()->getLimitingTimingRetard();
- getEngineState()->timingAdvance[event->cylinderNumber];
engine->ignitionState.perCylinderTiming[event->cylinderIndex] = correctedSparkAngle;