diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 6ab66415ca..4cd98bf209 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -101,6 +101,8 @@ struct_no_prefix engine_configuration_s #define CAMS_PER_BANK 2 #define CAMS_PER_BANK_padding 0 +#define GEARS_COUNT 8 + #define CAM_INPUTS_COUNT @@BANKS_COUNT@@*@@CAMS_PER_BANK@@ #define CAM_INPUTS_COUNT_padding 0 @@ -724,7 +726,8 @@ custom adc_channel_mode_e 4 bits, U32, @OFFSET@, [0:1], "Off", "Slow", "Fast" pin_input_mode_e throttlePedalUpPinMode; uint8_t acIdleExtraOffset;+Additional idle % while A/C is active;"%", 1, 0, 0, 100, 0 - int unused720;;"ms", 1, 0, 0, 1000, 2 + uint16_t autoscale finalGearRatio;;"ratio", 0.1, 0, 0, 100, 0 + uint16_t autoscale wheelDiameter;;"m", 0.001, 0, 0, 20, 0 uint16_t wastegatePositionMin;+Voltage when the wastegate is closed.\nYou probably don't have one of these!;"mv", 1, 0, 0, 5000, 0 uint16_t wastegatePositionMax;+Voltage when the wastegate is fully open.\nYou probably don't have one of these!\n1 volt = 1000 units;"mv", 1, 0, 0, 5000, 0 uint16_t idlePositionMin;+Voltage when the idle valve is closed.\nYou probably don't have one of these!;"mv", 1, 0, 0, 5000, 0 @@ -1493,7 +1496,9 @@ int8_t[MAX_CYLINDER_COUNT iterate] fuelTrim;;"Percent", @@PERCENT_TRIM_BYTE_PACK output_pin_e[4 iterate] stepper_raw_output; - int[99] mainUnusedEnd;;"units", 1, 0, 0, 1, 0 + uint16_t[GEARS_COUNT iterate] autoscale gearRatio;;"ratio", 0.01, 0, 0, 650, 0 + + int[95] mainUnusedEnd;;"units", 1, 0, 0, 1, 0 ! end of engine_configuration_s end_struct diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 3ee2d62005..58dbadd53e 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -3024,6 +3024,9 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00" panel = speedSensorAnalog, { enableCanVss == 0 } field = "Enable CANbus VSS values", enableCanVss, { canReadEnabled } panel = vssFilter + field = "finalGearRatio", finalGearRatio + field = "wheelDiameter", wheelDiameter + dialog = speedSensor, "Speed sensor", xAxis panel = speedSensorLeft