From 0315716e92d5c92235a049bc80325edefdf77eff Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 28 Mar 2023 20:31:40 -0400 Subject: [PATCH] K only:hellen-honda-k --- .../hellen/hellen-honda-k/board_configuration.cpp | 2 ++ .../hellen/hellen-honda-k/connectors/main.yaml | 13 +++++++++++-- firmware/config/engines/honda_k_dbc.cpp | 4 ++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/firmware/config/boards/hellen/hellen-honda-k/board_configuration.cpp b/firmware/config/boards/hellen/hellen-honda-k/board_configuration.cpp index dedbe79149..fc69b4adff 100644 --- a/firmware/config/boards/hellen/hellen-honda-k/board_configuration.cpp +++ b/firmware/config/boards/hellen/hellen-honda-k/board_configuration.cpp @@ -109,6 +109,8 @@ void setBoardDefaultConfiguration() { engineConfiguration->canTxPin = H176_CAN_TX; engineConfiguration->canRxPin = H176_CAN_RX; + engineConfiguration->vvtPins[0] = H144_OUT_PWM4; + engineConfiguration->fuelPumpPin = H144_OUT_IO13; engineConfiguration->idle.solenoidPin = H144_LS_6; engineConfiguration->fanPin = H144_OUT_IO12; diff --git a/firmware/config/boards/hellen/hellen-honda-k/connectors/main.yaml b/firmware/config/boards/hellen/hellen-honda-k/connectors/main.yaml index 231d00d0e4..a8a1cba02a 100644 --- a/firmware/config/boards/hellen/hellen-honda-k/connectors/main.yaml +++ b/firmware/config/boards/hellen/hellen-honda-k/connectors/main.yaml @@ -214,8 +214,9 @@ pins: function: Alternator Field - pin: B15 - ts_name: B15 - VTC HS - function: VTC High Side + ts_name: B15 - VTS HS + # not to be confused with VTC aka VVT + function: VTS High Side - pin: B17 # H144_IN_IAT AIN14 PC3 @@ -234,6 +235,14 @@ pins: ts_name: --- - INTAKE RUNNER function: Intake Runner + - pin: B23 +# H144_OUT_PWM4 + id: C8 + class: outputs + ts_name: --- VTC VVT + function: VTC VVT + + - pin: C2 function: GREY LSU4.9 +12V from main relay type: 12v diff --git a/firmware/config/engines/honda_k_dbc.cpp b/firmware/config/engines/honda_k_dbc.cpp index 55b862fb48..165624ae4c 100644 --- a/firmware/config/engines/honda_k_dbc.cpp +++ b/firmware/config/engines/honda_k_dbc.cpp @@ -19,9 +19,9 @@ void setHondaK() { engineConfiguration->trigger.type = TT_HONDA_K_CRANK_12_1; engineConfiguration->globalTriggerAngleOffset = 675; - // also known as 'CAM sync' just single tooth? and we do not even use it!? + // VVT is here just single tooth? and we do not even use it!? engineConfiguration->vvtMode[0] = VVT_HONDA_K_INTAKE; - // VVT is here + // also known as 'CAM sync'? i am pretty confused at this point engineConfiguration->vvtMode[1] = VVT_HONDA_K_EXHAUST; engineConfiguration->vvtOffsets[0] = -41; engineConfiguration->vvtOffsets[1] = 171;