diff --git a/firmware/config/boards/hellen/hellen121vag/board_configuration.cpp b/firmware/config/boards/hellen/hellen121vag/board_configuration.cpp index 64f2527321..5bba7ca423 100644 --- a/firmware/config/boards/hellen/hellen121vag/board_configuration.cpp +++ b/firmware/config/boards/hellen/hellen121vag/board_configuration.cpp @@ -190,6 +190,7 @@ void setBoardDefaultConfiguration(void) { engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS; engineConfiguration->injectionMode = IM_SIMULTANEOUS;//IM_BATCH;// IM_SEQUENTIAL; + setHellenDefaultVrThresholds(PASS_CONFIG_PARAMETER_SIGNATURE); hellenWbo(); } diff --git a/firmware/config/boards/hellen/hellen128/board_configuration.cpp b/firmware/config/boards/hellen/hellen128/board_configuration.cpp index f0a99c627e..397db189a9 100644 --- a/firmware/config/boards/hellen/hellen128/board_configuration.cpp +++ b/firmware/config/boards/hellen/hellen128/board_configuration.cpp @@ -114,6 +114,7 @@ void setBoardConfigOverrides(void) { engineConfiguration->canTxPin = GPIOD_1; engineConfiguration->canRxPin = GPIOD_0; + setHellenDefaultVrThresholds(PASS_CONFIG_PARAMETER_SIGNATURE); engineConfiguration->vrThreshold[0].pin = GPIOD_14; } @@ -178,6 +179,8 @@ void setBoardDefaultConfiguration(void) { /** * Jimmy best tune * https://rusefi.com/online/view.php?msq=626 + * md_sanci latest tune + * https://rusefi.com/online/view.php?msq=630 */ engineConfiguration->throttlePedalPositionAdcChannel = EFI_ADC_3; engineConfiguration->throttlePedalPositionSecondAdcChannel = EFI_ADC_14; diff --git a/firmware/config/engines/custom_engine.cpp b/firmware/config/engines/custom_engine.cpp index 2dcddb81cd..1ebf8f605e 100644 --- a/firmware/config/engines/custom_engine.cpp +++ b/firmware/config/engines/custom_engine.cpp @@ -760,6 +760,11 @@ void setHellen72etb(DECLARE_CONFIG_PARAMETER_SIGNATURE) { CONFIG(etbIo[0].directionPin1) = GPIOC_6; CONFIG(etbIo[0].directionPin2) = GPIOC_7; engineConfiguration->etb_use_two_wires = true; - } +void setHellenDefaultVrThresholds(DECLARE_CONFIG_PARAMETER_SIGNATURE) { + for (int i = 0;ivrThreshold[i].rpmBins, 600, 7000, 100); + setLinearCurve(engineConfiguration->vrThreshold[i].values, 0.6, 1.2, 0.1); + } +} diff --git a/firmware/config/engines/custom_engine.h b/firmware/config/engines/custom_engine.h index bfd2393fab..7251e7d21f 100644 --- a/firmware/config/engines/custom_engine.h +++ b/firmware/config/engines/custom_engine.h @@ -8,7 +8,7 @@ #pragma once #include "engine_configuration.h" - +void setHellenDefaultVrThresholds(DECLARE_CONFIG_PARAMETER_SIGNATURE); void setFrankensoConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE); void setFrankenso_01_LCD(engine_configuration_s *engineConfiguration); void disableLCD(engine_configuration_s *engineConfiguration);