diff --git a/firmware/controllers/algo/auto_generated_commonenum.cpp b/firmware/controllers/algo/auto_generated_commonenum.cpp index f488f3ff07..1c3fd970ca 100644 --- a/firmware/controllers/algo/auto_generated_commonenum.cpp +++ b/firmware/controllers/algo/auto_generated_commonenum.cpp @@ -1,6 +1,6 @@ #include "global.h" #include "rusefi_enums.h" -// was generated automatically by rusEFI tool from rusefi_enums.h // by enum2string.jar tool on Tue Oct 05 19:41:47 UTC 2021 +// was generated automatically by rusEFI tool from rusefi_enums.h // by enum2string.jar tool on Tue Oct 05 16:10:02 EDT 2021 // see also gen_config_and_enums.bat @@ -692,10 +692,10 @@ case IM_WASTED_SPARK: } const char *getImu_type_e(imu_type_e value){ switch(value) { +case IMU_MM5_10: + return "IMU_MM5_10"; case IMU_NONE: return "IMU_NONE"; -case IMU_TYPE_2: - return "IMU_TYPE_2"; case IMU_TYPE_3: return "IMU_TYPE_3"; case IMU_TYPE_4: diff --git a/firmware/controllers/algo/rusefi_enums.h b/firmware/controllers/algo/rusefi_enums.h index e7b60e7ff3..b697997ab2 100644 --- a/firmware/controllers/algo/rusefi_enums.h +++ b/firmware/controllers/algo/rusefi_enums.h @@ -758,7 +758,11 @@ typedef enum { typedef enum __attribute__ ((__packed__)) { IMU_NONE = 0, IMU_VAG = 1, - IMU_TYPE_2 = 2, + /** + * f037000002 + * https://github.com/rusefi/rusefi_documentation/blob/master/OEM-Docs/Bosch/Data%20Sheet_68903691_Acceleration_Sensor_MM5.10.pdf + */ + IMU_MM5_10 = 2, IMU_TYPE_3 = 3, IMU_TYPE_4 = 4, } imu_type_e; diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index d578145e2a..2a4ecba7ff 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -927,7 +927,7 @@ output_pin_e acFanPin;+Optional Radiator Fan used with A/C pin_output_mode_e[FSIO_COMMAND_COUNT iterate] gpioPinModes; uint8_t[DWELL_CURVE_SIZE] dwellVoltageCorrVoltBins;;"volts", 0.1, 0, 0, 20, 1 - custom imu_type_e 1 bits, U08, @OFFSET@, [0:4], "None", "VAG", "type 2", "type 2", "type 2" + custom imu_type_e 1 bits, U08, @OFFSET@, [0:4], "None", "VAG", "MM5.10", "type 2", "type 2" imu_type_e imuType uint8_t[1] unusedpinModesWhereHere;;"", 1, 0, 0, 255, 0