diff --git a/firmware/console/binary/tunerstudio_configuration.h b/firmware/console/binary/tunerstudio_configuration.h index 62d8ea4ff2..b743985d65 100644 --- a/firmware/console/binary/tunerstudio_configuration.h +++ b/firmware/console/binary/tunerstudio_configuration.h @@ -89,7 +89,7 @@ typedef struct { unsigned int isKnockChipOk : 1; // bit 9 int tsConfigVersion; // 84 egt_values_s egtValues; // 88 - float unusedOffset104; // 104 + float rpmAcceleration; // 104 float massAirFlow; // 108 /** * Current volumetric efficiency diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index d6254be5cb..432d6572dd 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -740,6 +740,8 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_ tsOutputChannels->actualLastInjection = ENGINE(actualLastInjection); + // 104 + tsOutputChannels->rpmAcceleration engine->rpmCalculator.getRpmAcceleration(); // offset 108 // For air-interpolated tCharge mode, we calculate a decent massAirFlow approximation, so we can show it to users even without MAF sensor! tsOutputChannels->massAirFlow = getAirFlowGauge(PASS_ENGINE_PARAMETER_SIGNATURE); @@ -932,7 +934,6 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels DECLARE_ tsOutputChannels->debugFloatField1 = engine->triggerCentral.getHwEventCounter((int)SHAFT_PRIMARY_RISING); tsOutputChannels->debugFloatField2 = engine->triggerCentral.getHwEventCounter((int)SHAFT_SECONDARY_RISING); tsOutputChannels->debugFloatField3 = engine->triggerCentral.getHwEventCounter((int)SHAFT_3RD_RISING); - tsOutputChannels->debugFloatField4 = engine->rpmCalculator.getRpmAcceleration(); break; case DBG_FSIO_ADC: // todo: implement a proper loop