parent
98041f0c15
commit
59be867e47
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue