From e904b63ec0da039fcd0a34de2dfb2dd4d75e0339 Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 5 May 2020 15:12:12 -0400 Subject: [PATCH] vehicleName TS field --- firmware/integration/rusefi_config.txt | 8 +++++++- firmware/tunerstudio/rusefi.input | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 2091597a3c..8dec4bacae 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -115,6 +115,8 @@ struct_no_prefix engine_configuration_s #define FSIO_COMMAND_COUNT 16 #define AUX_PID_COUNT 4 +#define VEHICLE_NAME_SIZE 32 + #define FUEL_RPM_COUNT 16 #define FUEL_LOAD_COUNT 16 @@ -792,6 +794,8 @@ custom maf_sensor_type_e 4 bits, S32, @OFFSET@, [0:7], @@maf_sensor_type_e_enum@ ! same length used for critical and soft error messages #define ERROR_BUFFER_SIZE 120 + custom vehicle_name_t @@VEHICLE_NAME_SIZE@@ string, ASCII, @OFFSET@, @@VEHICLE_NAME_SIZE@@ + custom error_message_t @@ERROR_BUFFER_SIZE@@ string, ASCII, @OFFSET@, @@ERROR_BUFFER_SIZE@@ custom le_formula_t @@LE_COMMAND_LENGTH@@ string, ASCII, @OFFSET@, @@LE_COMMAND_LENGTH@@ brain_pin_e[FSIO_COMMAND_COUNT iterate] fsioDigitalInputs;todo:not finished\nThese input pins allow us to pull toggle buttons state; @@ -869,7 +873,9 @@ custom maf_sensor_type_e 4 bits, S32, @OFFSET@, [0:7], @@maf_sensor_type_e_enum@ etb_io[ETB_COUNT iterate] etbIo2 - int[92] unusedAtOldBoardConfigurationEnd; + vehicle_name_t vehicleName; + + int[84] unusedAtOldBoardConfigurationEnd; bit vvtDisplayInverted bit fuelClosedLoopCorrectionEnabled;+Enables lambda sensor closed loop feedback for fuelling. diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 50e6c00288..0cfb60a0b5 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -1617,6 +1617,7 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00" dialog = baseEngineConfig, "Engine Configuration" ; field = "Engine Preset", engineType + field = "Vehicle Name", vehicleName field = "Number of Cylinders", cylindersCount field = "Engine Displacement", displacement field = "Firing Order", firingOrder