From 672f0b8acc25dbcfa9fcd9108b89eee9200042ab Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 15 Sep 2022 14:55:49 -0400 Subject: [PATCH] mapFast into logs --- firmware/console/binary/output_channels.txt | 3 ++- firmware/console/status_loop.cpp | 3 +++ firmware/controllers/engine_cycle/map_averaging.cpp | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/firmware/console/binary/output_channels.txt b/firmware/console/binary/output_channels.txt index 9b1c3965cb..a4f25fb050 100644 --- a/firmware/console/binary/output_channels.txt +++ b/firmware/console/binary/output_channels.txt @@ -363,5 +363,6 @@ bit injectorState11 bit injectorState12 int outputRequestPeriod - uint8_t[154 iterate] unusedAtTheEnd;;"",1, 0, 0, 0, 0 +float mapFast + uint8_t[150 iterate] unusedAtTheEnd;;"",1, 0, 0, 0, 0 end_struct diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index 997d02dd3b..bbb7863750 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -798,6 +798,9 @@ void updateTunerStudioState() { tsOutputChannels->starterState = enginePins.starterControl.getLogicValue(); tsOutputChannels->starterRelayDisable = enginePins.starterRelayDisable.getLogicValue(); + tsOutputChannels->mapFast = Sensor::getOrZero(SensorType::MapFast); + + tsOutputChannels->revolutionCounterSinceStart = engine->rpmCalculator.getRevolutionCounterSinceStart(); #if EFI_CAN_SUPPORT postCanState(); diff --git a/firmware/controllers/engine_cycle/map_averaging.cpp b/firmware/controllers/engine_cycle/map_averaging.cpp index 6e0a02823b..c533f57a38 100644 --- a/firmware/controllers/engine_cycle/map_averaging.cpp +++ b/firmware/controllers/engine_cycle/map_averaging.cpp @@ -167,7 +167,6 @@ static void applyMapMinBufferLength() { void postMapState(TunerStudioOutputChannels *tsOutputChannels) { tsOutputChannels->debugFloatField1 = v_averagedMapValue; tsOutputChannels->debugFloatField2 = engine->engineState.mapAveragingDuration; - tsOutputChannels->debugFloatField3 = Sensor::getOrZero(SensorType::MapFast); tsOutputChannels->debugIntField1 = mapMeasurementsCounter; } #endif /* EFI_TUNER_STUDIO */