diff --git a/firmware/controllers/engine_cycle/map_averaging.cpp b/firmware/controllers/engine_cycle/map_averaging.cpp index c02df074d7..371858660c 100644 --- a/firmware/controllers/engine_cycle/map_averaging.cpp +++ b/firmware/controllers/engine_cycle/map_averaging.cpp @@ -110,6 +110,7 @@ void mapAveragingAdcCallback(adcsample_t adcValue) { engine->triggerCentral.mapState.add(instantMap); bool isPeak = engine->triggerCentral.mapState.isPeak(); #if EFI_TUNER_STUDIO + tsOutputChannels.TEMPLOG_map_length = MAP_CAM_BUFFER; tsOutputChannels.TEMPLOG_MAP_INSTANT_AVERAGE = engine->triggerCentral.mapState.current; if (isPeak) { tsOutputChannels.TEMPLOG_map_peak++; diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 4d5fd0718d..ac29490e90 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -644,7 +644,7 @@ uint8_t knockRetardMaximum;+Maximum amount of knock retard.;"deg", 1, 0, 0, 30, uint8_t mapCamDetectionThreshold;;"", 1, 0, 0, 240, 0 uint16_t autoscale vssGearRatio;Number of turns of your vehicle speed sensor per turn of the wheels. For example if your sensor is on the transmission output, enter your axle/differential ratio. If you are using a hub-mounted sensor, enter a value of 1.0.; "ratio", 0.001, 0, 0, 60, 3 uint8_t vssToothCount;Number of pulses output per revolution of the shaft where your VSS is mounted. For example, GM applications of the T56 output 17 pulses per revolution of the transmission output shaft.;"count", 1, 0, 1, 100, 0 - uint8_t unusedNearVss;;"", 1, 0, 0, 1, 0 + uint8_t mapCamAveragingLength;;"", 1, 0, 0, 255, 0 ! todo: rename to triggerSimulatorRpm diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 738996f953..21be95a5e2 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -3399,6 +3399,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00" dialog = parkingLot, "Experimental/Broken" field = "mapCamDetectionAnglePosition", mapCamDetectionAnglePosition field = "mapCamDetectionThreshold", mapCamDetectionThreshold + field = "mapCamAveragingLength", mapCamAveragingLength field = "#System hacks" field = "Global fuel correction", globalFuelCorrection field = "MAP Averaging Logic @", mapAveragingSchedulingAtIndex