slow down fuel level (#2505)

This commit is contained in:
Matthew Kennedy 2021-03-28 05:01:08 -07:00 committed by GitHub
parent 8b3aa6c40d
commit 24b18ad9ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ void initFuelLevel(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
}
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();
}
#endif // ! EFI_UNIT_TEST