diff --git a/firmware/config/boards/hellen/hellen-honda-k/connectors/main.yaml b/firmware/config/boards/hellen/hellen-honda-k/connectors/main.yaml new file mode 100644 index 0000000000..952423a851 --- /dev/null +++ b/firmware/config/boards/hellen/hellen-honda-k/connectors/main.yaml @@ -0,0 +1,13 @@ +pins: + +info: + id: Honda-K + title: Hellen Honda K + name: Hellen Honda K + board_url: https://rusefi.com/s/honda-k + image: + file: main.jpg + pins: + - pin: U12 + x: 1119 + y: 424 diff --git a/firmware/config/boards/hellen/hellen-honda-k/readme.md b/firmware/config/boards/hellen/hellen-honda-k/readme.md new file mode 100644 index 0000000000..f39ec759a4 --- /dev/null +++ b/firmware/config/boards/hellen/hellen-honda-k/readme.md @@ -0,0 +1 @@ +https://github.com/rusefi/rusefi/wiki/Hellen-Honda-K \ No newline at end of file diff --git a/firmware/config/engines/honda_k_dbc.cpp b/firmware/config/engines/honda_k_dbc.cpp index 8e00eba37c..38853471aa 100644 --- a/firmware/config/engines/honda_k_dbc.cpp +++ b/firmware/config/engines/honda_k_dbc.cpp @@ -11,31 +11,22 @@ #include "proteus_meta.h" #endif // HW_PROTEUS -/** - * K24A4 engine - * PROTEUS_HONDA_K - */ -void setProteusHondaElement2003() { +void setHondaK() { engineConfiguration->specs.cylindersCount = 4; - engineConfiguration->specs.firingOrder = FO_1_3_4_2; engineConfiguration->specs.displacement = 2.4; -// engineConfiguration->trigger.type = TT_TOOTHED_WHEEL; -// engineConfiguration->trigger.customTotalToothCount = 12; -// engineConfiguration->trigger.customSkippedToothCount = 0; - + engineConfiguration->specs.firingOrder = FO_1_3_4_2; engineConfiguration->engineSyncCam = 1; - engineConfiguration->trigger.type = TT_HONDA_K_CRANK_12_1; engineConfiguration->globalTriggerAngleOffset = 675; -// engineConfiguration->trigger.type = TT_HONDA_K_CAM_4_1; // cam as primary, ignoring crank -// engineConfiguration->globalTriggerAngleOffset = 570; - engineConfiguration->vvtMode[0] = VVT_HONDA_K_INTAKE; engineConfiguration->vvtMode[1] = VVT_HONDA_K_EXHAUST; engineConfiguration->vvtOffsets[0] = -41; engineConfiguration->vvtOffsets[1] = 171; + // set cranking_fuel 15 + engineConfiguration->cranking.baseFuel = 75; + engineConfiguration->map.sensor.type = MT_DENSO183; engineConfiguration->injector.flow = 270; engineConfiguration->injectorCompensationMode = ICM_FixedRailPressure; @@ -43,20 +34,37 @@ void setProteusHondaElement2003() { strcpy(engineConfiguration->engineMake, ENGINE_MAKE_HONDA); strcpy(engineConfiguration->engineCode, "K24"); - strcpy(engineConfiguration->vehicleName, "test"); - - gppwm_channel *vtsControl = &engineConfiguration->gppwm[0]; - vtsControl->pwmFrequency = 0; - - strcpy(engineConfiguration->gpPwmNote[0], "VTS"); engineConfiguration->tpsMin = 100; engineConfiguration->tpsMax = 830; engineConfiguration->displayLogicLevelsInEngineSniffer = true; - // set cranking_fuel 15 - engineConfiguration->cranking.baseFuel = 75; + gppwm_channel *vtsControl = &engineConfiguration->gppwm[0]; + vtsControl->pwmFrequency = 0; + strcpy(engineConfiguration->gpPwmNote[0], "VTS"); +} + + +/** + * K24A4 engine + * PROTEUS_HONDA_K + */ +void setProteusHondaElement2003() { + setHondaK(); +// engineConfiguration->trigger.type = TT_TOOTHED_WHEEL; +// engineConfiguration->trigger.customTotalToothCount = 12; +// engineConfiguration->trigger.customSkippedToothCount = 0; + + +// engineConfiguration->trigger.type = TT_HONDA_K_CAM_4_1; // cam as primary, ignoring crank +// engineConfiguration->globalTriggerAngleOffset = 570; + + + + strcpy(engineConfiguration->vehicleName, "test"); + + gppwm_channel *vtsControl = &engineConfiguration->gppwm[0]; #if HW_PROTEUS & EFI_PROD_CODE diff --git a/firmware/config/engines/honda_k_dbc.h b/firmware/config/engines/honda_k_dbc.h index fcf116dc14..cbbfe53ebe 100644 --- a/firmware/config/engines/honda_k_dbc.h +++ b/firmware/config/engines/honda_k_dbc.h @@ -9,5 +9,6 @@ #include "engine_configuration.h" +void setHondaK(); void setProteusHondaElement2003(); void setProteusHondaOBD2A();