fuel level does not handle lack of ignition voltage #7254

only:uaefi
This commit is contained in:
rusefillc 2025-01-05 09:57:33 -05:00
parent 98041f0c15
commit 59be867e47
3 changed files with 8 additions and 0 deletions

View File

@ -110,6 +110,8 @@ void setDefaultBaseEngine() {
engineConfiguration->fuelLevelAveragingAlpha = engine_configuration_defaults::FUEL_LEVEL_AVERAGING_ALPHA;
engineConfiguration->fuelLevelUpdatePeriodSec = engine_configuration_defaults::FUEL_LEVEL_UPDATE_PERIOD_SEC;
engineConfiguration->fuelLevelLowThresholdVoltage = 0.25;
engineConfiguration->fuelLevelHighThresholdVoltage = 4.5;
engineConfiguration->watchOutForLinearTime = true;

View File

@ -1802,6 +1802,10 @@ uint8_t autoscale knockFuelTrim;Fuel trim when knock, max 30%;"%", 1, 0, 0, 30,
float fuelLevelAveragingAlpha;Exponential Average Alpha filtering parameter;"", 1, 0, 0.0001, 1, 4
float fuelLevelUpdatePeriodSec;How often do we update fuel level gauge;"seconds", 1, 0, 0, 60000, 3
float fuelLevelLowThresholdVoltage;Error below specified value;"v", 1, 0, 0, 10, 2
float fuelLevelHighThresholdVoltage;Error above specified value;"v", 1, 0, 0, 10, 2
#define END_OF_CALIBRATION_PADDING 58
uint8_t[END_OF_CALIBRATION_PADDING] unusedOftenChangesDuringFirmwareUpdate;;"units", 1, 0, 0, 1, 0

View File

@ -3220,6 +3220,8 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
dialog = fuelLevelDialog, "Fuel Level Sensor"
field = "Input channel", fuelLevelSensor
field = "Low threshold", fuelLevelLowThresholdVoltage, {fuelLevelSensor != @@ADC_CHANNEL_NONE@@}
field = "High threshold", fuelLevelHighThresholdVoltage, {fuelLevelSensor != @@ADC_CHANNEL_NONE@@}
field = "Filter Alpha", fuelLevelAveragingAlpha
field = "Update period", fuelLevelUpdatePeriodSec
panel = fuelLevelCurve