slow down fuel level (#2505)
This commit is contained in:
parent
204aa33e9a
commit
71a74fd233
|
@ -30,7 +30,9 @@ void initFuelLevel(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fuelSensor.setFunction(fuelCurve);
|
fuelSensor.setFunction(fuelCurve);
|
||||||
AdcSubscription::SubscribeSensor(fuelSensor, channel, /*lowpassCutoff =*/ 1);
|
|
||||||
|
// Filtering with such a small bandwidth helps prevent noisy data from fuel tank slosh
|
||||||
|
AdcSubscription::SubscribeSensor(fuelSensor, channel, /*lowpassCutoff =*/ 0.05f);
|
||||||
fuelSensor.Register();
|
fuelSensor.Register();
|
||||||
}
|
}
|
||||||
#endif // ! EFI_UNIT_TEST
|
#endif // ! EFI_UNIT_TEST
|
||||||
|
|
Loading…
Reference in New Issue