From 6fce043cbf52cee15fee706470f1c3121b1f8c57 Mon Sep 17 00:00:00 2001 From: Andrey Date: Tue, 26 Oct 2021 11:52:52 -0400 Subject: [PATCH] Honda K --- firmware/config/engines/honda_k_dbc.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/firmware/config/engines/honda_k_dbc.cpp b/firmware/config/engines/honda_k_dbc.cpp index d48eb98af3..a2d7d15296 100644 --- a/firmware/config/engines/honda_k_dbc.cpp +++ b/firmware/config/engines/honda_k_dbc.cpp @@ -28,6 +28,10 @@ void setProteusHondaElement2003(DECLARE_CONFIG_PARAMETER_SIGNATURE) { strcpy(CONFIG(engineCode), "K24"); strcpy(CONFIG(vehicleName), "test"); + engineConfiguration->tpsMin = 100; + engineConfiguration->tpsMax = 830; + + #if HW_PROTEUS & EFI_PROD_CODE engineConfiguration->triggerInputPins[0] = PROTEUS_DIGITAL_2; engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_4; @@ -40,6 +44,12 @@ void setProteusHondaElement2003(DECLARE_CONFIG_PARAMETER_SIGNATURE) { engineConfiguration->malfunctionIndicatorPin = PROTEUS_LS_10; + engineConfiguration->iat.adcChannel = PROTEUS_IN_ANALOG_TEMP_1; + engineConfiguration->clt.adcChannel = PROTEUS_IN_ANALOG_TEMP_2; + engineConfiguration->tps1_1AdcChannel = PROTEUS_IN_ANALOG_VOLT_3; + engineConfiguration->map.sensor.hwChannel = PROTEUS_IN_ANALOG_VOLT_6; + + CONFIG(mainRelayPin) = PROTEUS_LS_9; CONFIG(fuelPumpPin) = PROTEUS_LS_11; // CONFIG(fanPin) = PROTEUS_LS_15;