From 5feee7f442584ead28f8507f3c9a383fdbccc5e7 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Mon, 21 Mar 2016 16:01:49 -0400 Subject: [PATCH] auto-sync --- firmware/config/engines/lada_kalina.cpp | 16 ++++++++++++++++ .../engine_configuration_generated_structures.h | 7 ++++--- firmware/controllers/algo/rusefi_generated.h | 2 +- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/firmware/config/engines/lada_kalina.cpp b/firmware/config/engines/lada_kalina.cpp index 137878b163..d506cce060 100644 --- a/firmware/config/engines/lada_kalina.cpp +++ b/firmware/config/engines/lada_kalina.cpp @@ -8,9 +8,25 @@ */ #include "lada_kalina.h" +#include "custom_engine.h" +#include "fsio_impl.h" + EXTERN_ENGINE; void setLadaKalina(DECLARE_ENGINE_PARAMETER_F) { + setCustomEngineConfiguration(PASS_ENGINE_PARAMETER_F); + + setOperationMode(engineConfiguration, FOUR_STROKE_CRANK_SENSOR); + + + // starter relay solenoid + /** + * to test + * set_fsio_setting 0 5000 + */ + engineConfiguration->bc.fsio_setting[0] = 500; + // set_fsio_expression 1 "rpm 0 fsio_setting <" + setFsioExt(0, GPIOE_3, "rpm 0 fsio_setting <", 150 PASS_ENGINE_PARAMETER); } diff --git a/firmware/controllers/algo/engine_configuration_generated_structures.h b/firmware/controllers/algo/engine_configuration_generated_structures.h index a3edc7d165..434f2b860c 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 Sat Mar 12 09:18:24 EST 2016 +// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Mar 20 15:05:16 EDT 2016 // begin #ifndef ENGINE_CONFIGURATION_GENERATED_H_ #define ENGINE_CONFIGURATION_GENERATED_H_ @@ -727,6 +727,7 @@ typedef struct { */ brain_pin_e joystickDPin; /** + * rusEfi console Sensor Sniffer mode * offset 776 */ sensor_chart_e sensorChartMode; @@ -766,7 +767,7 @@ typedef struct { */ engine_type_e engineType; /** - * Disable engine sniffer above this rpm + * Engine sniffer would be disabled above this rpm * offset 4 */ int engineSnifferRpmThreshold; @@ -1698,4 +1699,4 @@ typedef struct { #endif // end -// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Mar 12 09:18:24 EST 2016 +// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Mar 20 15:05:16 EDT 2016 diff --git a/firmware/controllers/algo/rusefi_generated.h b/firmware/controllers/algo/rusefi_generated.h index 6643798bbe..274b7ebe1d 100644 --- a/firmware/controllers/algo/rusefi_generated.h +++ b/firmware/controllers/algo/rusefi_generated.h @@ -1,5 +1,5 @@ #define LE_COMMAND_LENGTH 200 -#define TS_FILE_VERSION 20160122 +#define TS_FILE_VERSION 20160312 #define WARMUP_TARGET_AFR_SIZE 4 #define MAP_ANGLE_SIZE 8 #define MAP_WINDOW_SIZE 8