From 17f07b6b0e602ae21df680178d3197ee9de22417 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sun, 23 May 2021 19:51:00 -0400 Subject: [PATCH] Override trigger gaps feature #2734 --- .../controllers/trigger/decoders/trigger_structure.h | 2 -- firmware/integration/rusefi_config.txt | 9 +++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/firmware/controllers/trigger/decoders/trigger_structure.h b/firmware/controllers/trigger/decoders/trigger_structure.h index 9f2bb64d4c..17c11362c5 100644 --- a/firmware/controllers/trigger/decoders/trigger_structure.h +++ b/firmware/controllers/trigger/decoders/trigger_structure.h @@ -75,8 +75,6 @@ class TriggerState; class TriggerFormDetails; class TriggerConfiguration; -// https://github.com/rusefi/rusefi/issues/2010 shows the corner case wheel with huge depth requirement -#define GAP_TRACKING_LENGTH 18 /** * @brief Trigger shape has all the fields needed to describe and decode trigger signal. diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index f7768e5337..ab636c4694 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -87,6 +87,9 @@ struct_no_prefix engine_configuration_s #define CAM_INPUTS_COUNT @@BANKS_COUNT@@ * @@CAMS_PER_BANK@@ #define CAM_INPUTS_COUNT_padding 0 +// https://github.com/rusefi/rusefi/issues/2010 shows the corner case wheel with huge depth requirement +#define GAP_TRACKING_LENGTH 18 + #define SERVO_COUNT 8 #define CONSOLE_DATA_PROTOCOL_TAG " @" @@ -521,7 +524,7 @@ injector_s injector bit isForcedInduction; bit useFordRedundantTps;+On Ford vehicles one of the sensors is not linear on the full range, i.e. in the specific range of the positions we effectively have only one sensor. bit isVerboseAuxPid1; -bit unused_294_3; +bit overrideTriggerGaps; bit unused_294_4; bit unused_294_5; bit unused_294_6; @@ -1515,7 +1518,9 @@ tChargeMode_e tChargeMode; int8_t[IGN_RPM_COUNT] knockBaseNoise;;"dB", 1.0, 0, -30.0, 0, 2 - int[365] mainUnusedEnd;;"units", 1, 0, -20, 100, 0 + float[GAP_TRACKING_LENGTH iterate] triggerGapOverride; + + int[347] mainUnusedEnd;;"units", 1, 0, -20, 100, 0 ! end of engine_configuration_s end_struct