This commit is contained in:
rusefi 2020-04-30 22:32:25 -04:00
commit 75fc417efa
2 changed files with 47 additions and 34 deletions

View File

@ -765,7 +765,7 @@ custom fsio_pwm_freq_t 2 scalar, U16, @OFFSET@, "Hz", 1, 0,
fsio_pwm_freq_t[FSIO_COMMAND_COUNT iterate] fsioFrequency; fsio_pwm_freq_t[FSIO_COMMAND_COUNT iterate] fsioFrequency;
custom fsio_setting_t 4 scalar, F32, @OFFSET@, "Val", 1, 0, 0, 18000, 4 custom fsio_setting_t 4 scalar, F32, @OFFSET@, "Val", 1, 0, 0, 18000, 2
fsio_setting_t[FSIO_COMMAND_COUNT iterate] fsio_setting; fsio_setting_t[FSIO_COMMAND_COUNT iterate] fsio_setting;
! todo: migrate to spi_pins & combine with spi pin modes ! todo: migrate to spi_pins & combine with spi pin modes
@ -1125,8 +1125,8 @@ tle8888_mode_e tle8888mode;
float autoTuneTpsRocThreshold; float autoTuneTpsRocThreshold;
float autoTuneTpsQuietPeriod; float autoTuneTpsQuietPeriod;
float unused2432; float unused2432;
float postCrankingFactor;Fuel multiplier taper, see also postCrankingDurationSec;"mult", 1, 0, 0, 100, 4 float postCrankingFactor;+Fuel multiplier (enrichment) immediately after engine start;"mult", 1, 0, 0, 100, 4
float postCrankingDurationSec;See also postCrankingFactor;"seconds", 1, 0, 0, 100, 2 float postCrankingDurationSec;+Time over which to taper out after start enrichment;"seconds", 1, 0, 0, 100, 2
ThermistorConf auxTempSensor1;todo: finish implementation #332 ThermistorConf auxTempSensor1;todo: finish implementation #332
ThermistorConf auxTempSensor2;todo: finish implementation #332 ThermistorConf auxTempSensor2;todo: finish implementation #332
int16_t fuelClosedLoopCltThreshold;;"C", 1, 0, 0, 100, 0 int16_t fuelClosedLoopCltThreshold;;"C", 1, 0, 0, 100, 0

View File

@ -1238,6 +1238,7 @@ menuDialog = main
menu = "&Base &Engine" menu = "&Base &Engine"
subMenu = engineChars, "Base engine" subMenu = engineChars, "Base engine"
subMenu = triggerConfiguration, "Trigger" subMenu = triggerConfiguration, "Trigger"
subMenu = triggerConfiguration_IO, "Advanced Trigger"
subMenu = std_separator subMenu = std_separator
subMenu = energySystems, "Battery and alternator" subMenu = energySystems, "Battery and alternator"
subMenu = std_separator subMenu = std_separator
@ -1354,7 +1355,6 @@ menuDialog = main
menu = "&Sensors" menu = "&Sensors"
# Base analog input settings # Base analog input settings
subMenu = triggerInputs, "Trigger inputs"
subMenu = otherSensorInputs, "Misc sensors" subMenu = otherSensorInputs, "Misc sensors"
subMenu = analogInputSettings, "Analog input settings" subMenu = analogInputSettings, "Analog input settings"
subMenu = std_separator subMenu = std_separator
@ -1631,9 +1631,12 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "Firing Order", firingOrder field = "Firing Order", firingOrder
; Engine->Trigger configuration ; Engine->Trigger configuration
dialog = triggerConfiguration_settings, "Settings Trigger" dialog = triggerConfiguration_settings, "Trigger Pattern"
field = "!https://rusefi.com/s/trigger" field = "!https://rusefi.com/s/trigger"
field = "Trigger type", trigger_type field = "Trigger type", trigger_type
field = "Total tooth count", trigger_customTotalToothCount, {trigger_type == 0}, {trigger_type == 0}
field = "Missing/skipped tooth count", trigger_customSkippedToothCount, {trigger_type == 0}, {trigger_type == 0}
; see also in firmware '[doesTriggerImplyOperationMode]' tag ; see also in firmware '[doesTriggerImplyOperationMode]' tag
field = "Operation mode / speed", ambiguousOperationMode field = "Operation mode / speed", ambiguousOperationMode
field = "With VR sensors only rising edge has reliable position" field = "With VR sensors only rising edge has reliable position"
@ -1642,11 +1645,8 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "!For well-known trigger types use '0' trigger angle offset" field = "!For well-known trigger types use '0' trigger angle offset"
field = "Trigger Angle Offset", globalTriggerAngleOffset field = "Trigger Angle Offset", globalTriggerAngleOffset
field = "Display only interesting", displayLogicLevelsInEngineSniffer field = "Display only interesting", displayLogicLevelsInEngineSniffer
field = "#Custom Trigger"
field = "total Tooth Count", trigger_customTotalToothCount, {trigger_type == 0}
field = "skipped Tooth Count", trigger_customSkippedToothCount, {trigger_type == 0}
dialog = triggerConfiguration_IO, "Settings I/O" dialog = triggerConfiguration_IO, "Advanced Trigger"
field = "!https://rusefi.com/s/vvt" field = "!https://rusefi.com/s/vvt"
field = "VVT mode", vvtMode, {trigger_type != 80} field = "VVT mode", vvtMode, {trigger_type != 80}
field = "VVT use rise front", vvtCamSensorUseRise, {trigger_type != 80} field = "VVT use rise front", vvtCamSensorUseRise, {trigger_type != 80}
@ -1655,9 +1655,21 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "print verbose sync details to console",verboseTriggerSynchDetails field = "print verbose sync details to console",verboseTriggerSynchDetails
field = "Do not print messages in case of sync error", silentTriggerError field = "Do not print messages in case of sync error", silentTriggerError
field = "Enable noise filtering", useNoiselessTriggerDecoder, {trigger_type == @@TRIGGER_TYPE_60_2@@ || trigger_type == @@TRIGGER_TYPE_36_1@@} field = "Enable noise filtering", useNoiselessTriggerDecoder, {trigger_type == @@TRIGGER_TYPE_60_2@@ || trigger_type == @@TRIGGER_TYPE_36_1@@}
dialog = triggerInputs, "Trigger Inputs"
field = "!ECU reboot needed to apply these settings"
field = "#Cam is primary if you have cam sensor"
field = "Primary channel", triggerInputPins1
field = "Invert Primary", invertPrimaryTriggerSignal
field = "Secondary channel", triggerInputPins2, { trigger_type != 0 && trigger_type != 8 && trigger_type != 9 && trigger_type != 18 && trigger_type != 20}
field = "Invert Secondary", invertSecondaryTriggerSignal, { trigger_type != 0 && trigger_type != 8 && trigger_type != 9 && trigger_type != 18 && trigger_type != 20}
field = "Cam Sync/VVT input", camInputs1
panel = triggerInputComparator @@if_ts_show_trigger_comparator
dialog = triggerConfiguration dialog = triggerConfiguration
panel = triggerConfiguration_settings, North panel = triggerConfiguration_settings, North
panel = triggerConfiguration_IO, South panel = triggerInputs, South
; Engine->Injection Settings ; Engine->Injection Settings
dialog = injChars, "Injector Settings", yAxis dialog = injChars, "Injector Settings", yAxis
@ -1810,16 +1822,6 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "Comparator hysteresis voltage (Max)", triggerCompHystMax field = "Comparator hysteresis voltage (Max)", triggerCompHystMax
field = "VR-sensor saturation RPM", triggerCompSensorSatRpm field = "VR-sensor saturation RPM", triggerCompSensorSatRpm
dialog = triggerInputs, "Trigger Inputs"
field = "!ECU reboot needed to apply these settings"
field = "#Cam is primary if you have cam sensor"
field = "Primary channel", triggerInputPins1
field = "Invert Primary", invertPrimaryTriggerSignal
field = "Secondary channel", triggerInputPins2, { trigger_type != 0 && trigger_type != 8 && trigger_type != 9 && trigger_type != 18 && trigger_type != 20}
field = "Invert Secondary", invertSecondaryTriggerSignal, { trigger_type != 0 && trigger_type != 8 && trigger_type != 9 && trigger_type != 18 && trigger_type != 20}
field = "Cam Sync/VVT input", camInputs1
panel = triggerInputComparator @@if_ts_show_trigger_comparator
; ;
; allXXX sections allows a quick overview of used I/O in order to address conflicts mostly, not really to ; allXXX sections allows a quick overview of used I/O in order to address conflicts mostly, not really to
; configure the features. ; configure the features.
@ -2033,8 +2035,8 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "Input channel", clt_adcChannel field = "Input channel", clt_adcChannel
field = "Bias resistor", clt_bias_resistor, {clt_adcChannel != 16} field = "Bias resistor", clt_bias_resistor, {clt_adcChannel != 16}
field = "#Here is three pairs of thermistor temperature and resistance." field = "#Input three pairs of thermistor temperature and resistance."
field = "#Typical temperatures is -40 deg C, 0 deg C and 100 deg C" field = "#Typical temperatures are -40 deg C, 0 deg C and 100 deg C"
field = "" field = ""
field = "Lowest temperature", clt_tempC_1, {clt_adcChannel != 16} field = "Lowest temperature", clt_tempC_1, {clt_adcChannel != 16}
field = "Resistance @ LT", clt_resistance_1, {clt_adcChannel != 16} field = "Resistance @ LT", clt_resistance_1, {clt_adcChannel != 16}
@ -2047,17 +2049,21 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "" field = ""
field = "Linear characteristic", useLinearCltSensor, {clt_adcChannel != 16} field = "Linear characteristic", useLinearCltSensor, {clt_adcChannel != 16}
dialog = cltSensor, "", xAxis dialog = cltGauges
panel = clt_thermistor
gauge = CLTGauge gauge = CLTGauge
gauge = rawCltGauge
dialog = cltSensor, "CLT Sensor", border
panel = clt_thermistor, West
panel = cltGauges, East
; Sensors->IAT sensor ; Sensors->IAT sensor
dialog = iat_thermistor, "IAT sensor" dialog = iat_thermistor, "IAT sensor"
field = "Input channel", iat_adcChannel field = "Input channel", iat_adcChannel
field = "Bias resistor", iat_bias_resistor, {iat_adcChannel != 16} field = "Bias resistor", iat_bias_resistor, {iat_adcChannel != 16}
field = "#Here is three pairs of thermistor temperature and resistance." field = "#Input three pairs of thermistor temperature and resistance."
field = "#Typical temperatures is -40 deg C, 0 deg C and 100 deg C" field = "#Typical temperatures are -40 deg C, 0 deg C and 100 deg C"
field = "" field = ""
field = "Lowest temperature", iat_tempC_1, {iat_adcChannel != 16} field = "Lowest temperature", iat_tempC_1, {iat_adcChannel != 16}
field = "Resistance @ LT", iat_resistance_1, {iat_adcChannel != 16} field = "Resistance @ LT", iat_resistance_1, {iat_adcChannel != 16}
@ -2070,21 +2076,29 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "" field = ""
field = "Linear characteristic", useLinearIatSensor, {iat_adcChannel != 16} field = "Linear characteristic", useLinearIatSensor, {iat_adcChannel != 16}
dialog = iatSensor, "", xAxis dialog = iatGauges
panel = iat_thermistor
gauge = IATGauge gauge = IATGauge
gauge = rawIatGauge
dialog = iatSensor, "IAT Sensor", border
panel = iat_thermistor, West
panel = iatGauges, East
; Sensors->Oil pressure sensor ; Sensors->Oil pressure sensor
dialog = oilp_settings, "Oil pressure sensor" dialog = oilp_settings, "Oil Pressure Sensor"
field = "Oil Pressure ADC input", oilPressure_hwChannel field = "Oil Pressure ADC input", oilPressure_hwChannel
field = "low voltage", oilPressure_v1, {oilPressure_hwChannel != 16} field = "low voltage", oilPressure_v1, {oilPressure_hwChannel != 16}
field = "low pressure", oilPressure_value1, {oilPressure_hwChannel != 16} field = "low pressure", oilPressure_value1, {oilPressure_hwChannel != 16}
field = "high voltage", oilPressure_v2, {oilPressure_hwChannel != 16} field = "high voltage", oilPressure_v2, {oilPressure_hwChannel != 16}
field = "high pressure", oilPressure_value2, {oilPressure_hwChannel != 16} field = "high pressure", oilPressure_value2, {oilPressure_hwChannel != 16}
dialog = oilPressureSensor, "", xAxis dialog = oilPressureGauges
panel = oilp_settings
gauge = OilPressGauge gauge = OilPressGauge
gauge = rawOilPressureGauge
dialog = oilPressureSensor, "", border
panel = oilp_settings, West
panel = oilPressureGauges, East
; Sensors->MAP sensor ; Sensors->MAP sensor
dialog = mapSensorAnalog, "MAP sensor", yAxis dialog = mapSensorAnalog, "MAP sensor", yAxis
@ -2560,7 +2574,6 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
dialog = crankingFuel, "Fuel" dialog = crankingFuel, "Fuel"
field = "Injection mode", crankingInjectionMode field = "Injection mode", crankingInjectionMode
field = "!Value '1' is currently recommended"
field = "Fuel Source For Cranking", useRunningMathForCranking field = "Fuel Source For Cranking", useRunningMathForCranking
field = "Base fuel pulse width", cranking_baseFuel, {useRunningMathForCranking == 0} field = "Base fuel pulse width", cranking_baseFuel, {useRunningMathForCranking == 0}
@ -2577,7 +2590,7 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "Fixed Cranking Dwell", ignitionDwellForCrankingMs, {useConstantDwellDuringCranking == 1} field = "Fixed Cranking Dwell", ignitionDwellForCrankingMs, {useConstantDwellDuringCranking == 1}
field = "Cranking Dwell Angle", crankingChargeAngle, {useConstantDwellDuringCranking == 0} field = "Cranking Dwell Angle", crankingChargeAngle, {useConstantDwellDuringCranking == 0}
dialog = postCrankingEnrichment, "Post-cranking short-time fuel enrichment (NOT IMPLEMENTED #331)" dialog = postCrankingEnrichment, "After start enrichment"
field = "Post-Cranking factor", postCrankingFactor field = "Post-Cranking factor", postCrankingFactor
field = "Duration", postCrankingDurationSec field = "Duration", postCrankingDurationSec