diff --git a/firmware/config/boards/hellen/hellen-honda-k/board.mk b/firmware/config/boards/hellen/hellen-honda-k/board.mk index a8a615450c..32d9e8c5cc 100644 --- a/firmware/config/boards/hellen/hellen-honda-k/board.mk +++ b/firmware/config/boards/hellen/hellen-honda-k/board.mk @@ -19,5 +19,6 @@ DDEFS += -DFIRMWARE_ID=\"hellen-honda-k\" $(VAR_DEF_ENGINE_TYPE) DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE DDEFS += -DSHORT_BOARD_NAME=hellen-honda-k +DDEFS += -DHW_HELLEN_K=TRUE include $(BOARDS_DIR)/hellen/hellen-common144.mk diff --git a/firmware/config/engines/honda_k_dbc.cpp b/firmware/config/engines/honda_k_dbc.cpp index b6e913eac3..16065d048a 100644 --- a/firmware/config/engines/honda_k_dbc.cpp +++ b/firmware/config/engines/honda_k_dbc.cpp @@ -17,21 +17,21 @@ void setHondaK() { engineConfiguration->firingOrder = FO_1_3_4_2; engineConfiguration->engineSyncCam = SC_Exhaust_First; engineConfiguration->trigger.type = trigger_type_e::TT_HONDA_K_CRANK_12_1; - int magic = 12; // note that offset and VVT are related - engineConfiguration->globalTriggerAngleOffset = 675 - magic; + int magic = 0; // note that offset and VVT are related + engineConfiguration->globalTriggerAngleOffset = 663 - magic; // VVT is here just single tooth? and we do not even use it!? engineConfiguration->vvtMode[0] = VVT_HONDA_K_INTAKE; // also known as 'CAM sync'? i am pretty confused at this point engineConfiguration->vvtMode[1] = VVT_HONDA_K_EXHAUST; engineConfiguration->vvtOffsets[0] = -21; - engineConfiguration->vvtOffsets[1] = 171 + magic; + engineConfiguration->vvtOffsets[1] = 183 + magic; // set cranking_fuel 15 engineConfiguration->cranking.baseFuel = 75; engineConfiguration->map.sensor.type = MT_DENSO183; -// todo; quote some source? +// todo: quote some source? engineConfiguration->injector.flow = 270; engineConfiguration->injector.flow = 310; engineConfiguration->injectorCompensationMode = ICM_FixedRailPressure; @@ -41,6 +41,11 @@ void setHondaK() { engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS; engineConfiguration->injectionMode = IM_SEQUENTIAL; + engineConfiguration->crankingIACposition = 70; + engineConfiguration->postCrankingFactor = 1.25; + engineConfiguration->postCrankingDurationSec = 15; + engineConfiguration->useRunningMathForCranking = true; + strcpy(engineConfiguration->engineMake, ENGINE_MAKE_HONDA); strcpy(engineConfiguration->engineCode, "K24");