only:Disable fans after VSS > x fix #5875

This commit is contained in:
Andrey 2024-01-23 11:04:49 -05:00
parent 16e7584ee0
commit 0df1a9caa5
2 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,7 @@ Release template (copy/paste this for new release):
- Ford Voodoo 1-5-4-8-3-7-2-6 firing order
- 6/0 CKP trigger pattern for 1995 Lamborghini Diablo #5876
- VE/Ign/Boost blend tables can select a Y axis override for even more flexibility
- Disable radiator fans after certain vehicle speed #5875
### Removed
- Narrow to Wideband approximation

View File

@ -6,6 +6,7 @@
bool FanController::getState(bool acActive, bool lastState) {
auto clt = Sensor::get(SensorType::Clt);
auto vss = Sensor::get(SensorType::VehicleSpeed);
#if EFI_SHAFT_POSITION_INPUT
cranking = engine->rpmCalculator.isCranking();
@ -15,6 +16,7 @@ bool FanController::getState(bool acActive, bool lastState) {
notRunning = true;
#endif
disabledBySpeed = disableAtSpeed() > 0 && vss.Valid && vss.Value > disableAtSpeed();
disabledWhileEngineStopped = notRunning && disableWhenStopped();
brokenClt = !clt;
enabledForAc = enableWithAc() && acActive;
@ -27,6 +29,9 @@ bool FanController::getState(bool acActive, bool lastState) {
} else if (disabledWhileEngineStopped) {
// Inhibit while not running (if so configured)
return false;
} else if (disabledBySpeed) {
// Inhibit while driving fast
return false;
} else if (brokenClt) {
// If CLT is broken, turn the fan on
return true;