From f9dfcc8b9a0d7dc15ed5d52a97bee505be2c5bf2 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 9 Aug 2021 16:25:57 -0400 Subject: [PATCH] Implement auto knock threshold sampling #3033 --- firmware/integration/rusefi_config.txt | 3 ++- firmware/tunerstudio/rusefi.input | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 00d80ad90d..fb117fa232 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -1392,7 +1392,8 @@ tle8888_mode_e tle8888mode; uint16_t applyNonlinearBelowPulse;+Apply nonlinearity correction below a pulse of this duration. Pulses longer than this duration will receive no adjustment.;"ms", {1/1000}, 0, 0, 30, 3 custom InjectorNonlinearMode 1 bits, U08, @OFFSET@, [0:0], "None", "Polynomial" InjectorNonlinearMode injectorNonlinearMode - uint8_t[3] unused2508;;"units", 1, 0, -20, 100, 0 + uint8_t unused2508;;"units", 1, 0, -20, 100, 0 + int16_t knockSamplingDuration;;"Deg", 1, 0, 0, 720, 0 int16_t etbFreq;;"Hz", 1, 0, 0, @@ETB_HW_MAX_FREQUENCY@@, 0 pid_s etbWastegatePid; uint8_t[4] unused2536;;"units", 1, 0, -20, 100, 0 diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index b693ae034e..427cf72905 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -2817,6 +2817,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00" field = "Enable", enableSoftwareKnock field = "Cylinder Bore", cylinderBore field = "Knock filter frequency", knockBandCustom, {enableSoftwareKnock} + field = "knockSamplingDuration", knockSamplingDuration, {enableSoftwareKnock} field = "" field = "Select the nearest sensor for each cylinder" field = "Cylinder 1", knockBankCyl1, {enableSoftwareKnock}