diff --git a/firmware/controllers/algo/fuel/dfco.cpp b/firmware/controllers/algo/fuel/dfco.cpp index 1132560d6d..fb9d7ad990 100644 --- a/firmware/controllers/algo/fuel/dfco.cpp +++ b/firmware/controllers/algo/fuel/dfco.cpp @@ -6,7 +6,7 @@ bool DfcoController::getState() const { } auto rpm = Sensor::getOrZero(SensorType::Rpm); - const auto [tpsValid, tpsPos] = Sensor::get(SensorType::Tps1); + const auto [tpsValid, tpsPos] = Sensor::get(SensorType::DriverThrottleIntent); const auto [cltValid, clt] = Sensor::get(SensorType::Clt); const auto [mapValid, map] = Sensor::get(SensorType::Map); diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 15b0b68cb7..ccf1ee3f69 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -1359,7 +1359,7 @@ float[CRANKING_ADVANCE_CURVE_SIZE] crankingAdvance ;+Optional timing advance int16_t coastingFuelCutRpmHigh;+This sets the RPM above which fuel cut is active.;"rpm", 1, 0, 0, 5000, 0 int16_t coastingFuelCutRpmLow;+This sets the RPM below which fuel cut is deactivated, this prevents jerking or issues transitioning to idle;"rpm", 1, 0, 0, 5000, 0 - int16_t coastingFuelCutTps;+Throttle position below which fuel cut is active.;"%", 1, 0, 0, 20, 1 + int16_t coastingFuelCutTps;+Throttle position below which fuel cut is active. With an electronic throttle enabled, this checks against pedal position.;"%", 1, 0, 0, 20, 1 int16_t coastingFuelCutClt;+Fuel cutoff is disabled when the engine is cold.;"C", 1, 0, -100, 100, 0 int16_t pidExtraForLowRpm;+Increases PID reaction for RPMcoastingFuelCutClt + 1; Sensor::setMockValue(SensorType::Clt, hotClt); // mock TPS - throttle is opened - Sensor::setMockValue(SensorType::Tps1, 60); + Sensor::setMockValue(SensorType::DriverThrottleIntent, 60); // set 'running' RPM - just above RpmHigh threshold Sensor::setMockValue(SensorType::Rpm, engineConfiguration->coastingFuelCutRpmHigh + 1); // 'advance' time (amount doesn't matter) @@ -54,7 +54,7 @@ TEST(fuelCut, coasting) { assertEqualsM("inj dur#1 norm", normalInjDuration, engine->injectionDuration); // 'releasing' the throttle - Sensor::setMockValue(SensorType::Tps1, 0); + Sensor::setMockValue(SensorType::DriverThrottleIntent, 0); eth.engine.periodicFastCallback(); // Fuel cut-off is enabled now