From 34787eedf856f98aece8edc955425f4ba49b6600 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 21 Nov 2024 09:54:50 -0500 Subject: [PATCH] only:gmRailSensor --- firmware/config/engines/gm_sbc.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/firmware/config/engines/gm_sbc.cpp b/firmware/config/engines/gm_sbc.cpp index 1e98ccc093..e4f4edf08c 100644 --- a/firmware/config/engines/gm_sbc.cpp +++ b/firmware/config/engines/gm_sbc.cpp @@ -66,6 +66,14 @@ void setStepperHw() { #endif // HW_PROTEUS } +static void gmRailSensor() { + engineConfiguration->highPressureFuel.v1 = 0.5; /* volts */; + engineConfiguration->highPressureFuel.value1 = 0; + engineConfiguration->highPressureFuel.v2 = 4.5; /* volts */; + // fun fact: twice the range of VAG B6? + engineConfiguration->highPressureFuel.value2 = PSI2KPA(400); +} + void setGmSbc() { engineConfiguration->cylindersCount = 8; engineConfiguration->firingOrder = FO_1_8_4_3_6_5_7_2; @@ -135,6 +143,7 @@ void setGmLcv() { engineConfiguration->vvtMode[0] = VVT_BOSCH_QUICK_START; engineConfiguration->vvtMode[1] = VVT_BOSCH_QUICK_START; engineConfiguration->lowPressureFuel.hwChannel = EFI_ADC_NONE; + gmRailSensor(); #ifdef HW_HELLEN_4K_GDI engineConfiguration->invertCamVVTSignal = true;