From 577b30c74aae6fd4c7b8e237b94a1097b94c631e Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 2 Apr 2022 20:48:19 -0400 Subject: [PATCH] Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077 --- firmware/integration/rusefi_config.txt | 1 + .../.idea/runConfigurations/TriggerImage.xml | 2 +- .../runConfigurations/TriggerImage_27.xml | 2 +- .../main/java/com/rusefi/TriggerSignal.java | 22 --- .../java/com/rusefi/TriggerWheelInfo.java | 120 --------------- .../rusefi/{ => trigger}/TriggerImage.java | 85 +++++------ .../java/com/rusefi/trigger/WaveState.java | 9 +- .../com/rusefi/trigger/TriggerSignal.java | 34 +++++ .../rusefi/trigger/TriggerSignalReader.java | 36 +++++ .../com/rusefi/trigger/TriggerWheelInfo.java | 141 ++++++++++++++++++ 10 files changed, 255 insertions(+), 197 deletions(-) delete mode 100644 java_console/ui/src/main/java/com/rusefi/TriggerSignal.java delete mode 100644 java_console/ui/src/main/java/com/rusefi/TriggerWheelInfo.java rename java_console/ui/src/main/java/com/rusefi/{ => trigger}/TriggerImage.java (85%) create mode 100644 java_tools/configuration_definition/src/main/java/com/rusefi/trigger/TriggerSignal.java create mode 100644 java_tools/configuration_definition/src/main/java/com/rusefi/trigger/TriggerSignalReader.java create mode 100644 java_tools/configuration_definition/src/main/java/com/rusefi/trigger/TriggerWheelInfo.java diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index f925ab0a44..6d42cf739f 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -195,6 +195,7 @@ struct_no_prefix engine_configuration_s #define TRIGGER_IS_SECOND_WHEEL_CAM "isSecondWheelCam" #define TRIGGER_HAS_SECOND_CHANNEL "hasSecondChannel" #define TRIGGER_HARDCODED_OPERATION_MODE "knownOperationMode" +#define TRIGGER_COMMENT "#" ! ! all the xxx_PACKING_xxx constants are about persisting tables in compact for, for example packing RPM with 50 increment in a byte diff --git a/java_console/.idea/runConfigurations/TriggerImage.xml b/java_console/.idea/runConfigurations/TriggerImage.xml index ffed9389e1..5fcd1846b4 100644 --- a/java_console/.idea/runConfigurations/TriggerImage.xml +++ b/java_console/.idea/runConfigurations/TriggerImage.xml @@ -1,6 +1,6 @@ -