From 9d851d59f4a14535259c1d0aa855242e0dd838ec Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 11 Mar 2019 13:38:39 -0400 Subject: [PATCH] hip9011 knock detection chip driver #35 --- .../algo/engine_configuration_generated_structures.h | 10 +++++----- firmware/integration/rusefi_config.txt | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware/controllers/algo/engine_configuration_generated_structures.h b/firmware/controllers/algo/engine_configuration_generated_structures.h index 3e21664fe0..6dd95994c9 100644 --- a/firmware/controllers/algo/engine_configuration_generated_structures.h +++ b/firmware/controllers/algo/engine_configuration_generated_structures.h @@ -1,4 +1,4 @@ -// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Mar 11 09:37:59 EDT 2019 +// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Mar 11 13:35:29 EDT 2019 // begin #ifndef ENGINE_CONFIGURATION_GENERATED_H_ #define ENGINE_CONFIGURATION_GENERATED_H_ @@ -1102,7 +1102,9 @@ typedef struct { */ int step1timing; /** - * 6=8MHz todo solit two bit fields + * value '6' for 8MHz hw osc + * read hip9011 datasheet for details + * todo split into two bit fields * offset 324 */ int hip9011PrescalerAndSDO; @@ -1585,12 +1587,10 @@ typedef struct { */ uint8_t unusuedvref[3]; /** - * "angle", 1, 0, -1000, 1000, 2 * offset 1508 */ float knockDetectionWindowStart; /** - * "angle", 1, 0, -1000, 1000, 2 * offset 1512 */ float knockDetectionWindowEnd; @@ -2578,4 +2578,4 @@ typedef struct { #endif // end -// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Mar 11 09:37:59 EDT 2019 +// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Mar 11 13:35:29 EDT 2019 diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 7f4b278bac..7f522b9561 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -307,7 +307,7 @@ ThermistorConf iat; int step1rpm;A secondary Rev limit engaged by the driver to help launch the vehicle faster;"rpm", 1, 0, 0, 20000.0, 2 int step1timing;;"deg", 1, 0, -180, 180, 2 - int hip9011PrescalerAndSDO;6=8MHz todo solit two bit fields;"integer", 1, 0.0, 0.0, 32, 0 + int hip9011PrescalerAndSDO;+value '6' for 8MHz hw osc\nread hip9011 datasheet for details\ntodo split into two bit fields;"integer", 1, 0.0, 0.0, 32, 0 float knockBandCustom;+We calculate knock band based of cylinderBore\n Use this to override - kHz knock band override;"kHz", 1, 0.0, 0.0, 10.0, 2