put injector units in the UI, not in the actual field #42

This commit is contained in:
Matthew Kennedy 2024-03-19 12:48:48 -07:00
parent 10e5858ea9
commit 7de17eae7e
3 changed files with 12 additions and 9 deletions

View File

@ -39,6 +39,7 @@ or
### Fixed
- Improve performance with Lua CAN reception of a high volume of frames
- Displayed units in TunerStudio change when switching between volume vs. mass injector flow modes #42
## December 2023 Release

View File

@ -392,7 +392,7 @@ custom can_nbc_e 1 bits, U08, @OFFSET@, [0:4], "None", "FIAT", "VAG", "MAZDA RX8
can_nbc_e canNbcType
struct injector_s
float flow;This is your injector flow at the fuel pressure used in the vehicle. cc/min, cubic centimetre per minute\nBy the way, g/s = 0.125997881 * (lb/hr)\ng/s = 0.125997881 * (cc/min)/10.5\ng/s = 0.0119997981 * cc/min;"cm3/min", 1, 0, 0, 99999, 2
float flow;This is your injector flow at the fuel pressure used in the vehicle. cc/min;"", 1, 0, 0, 99999, 2
uint16_t[VBAT_INJECTOR_CURVE_SIZE] autoscale battLagCorrBins;;"volts", 0.01, 0, 0, 20, 2
uint16_t[VBAT_INJECTOR_CURVE_SIZE] autoscale battLagCorr;ms delay between injector open and close dead times;"ms", 0.01, 0, 0, 50, 2
end_struct
@ -684,7 +684,7 @@ pin_input_mode_e throttlePedalUpPinMode;
Gpio[TRIGGER_SIMULATOR_PIN_COUNT iterate] triggerSimulatorPins;Generate a synthetic trigger signal for an external ECU
uint16_t autoscale fordInjectorSmallPulseSlope;;"g/s", 0.001, 0, 0, 65, 3
uint16_t autoscale fordInjectorSmallPulseSlope;;"", 0.001, 0, 0, 65, 3
uint8_t autoscale lambdaProtectionMinRpm;;"RPM", 100, 0, 0, 25000, 0
uint8_t autoscale lambdaProtectionMinLoad;;"%", 10, 0, 0, 1000, 0

View File

@ -2358,15 +2358,16 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
; Engine->Injection Settings
dialog = injChars, "Injector Settings", yAxis
field = "Injector flow", injector_flow, {isInjectionEnabled == 1}
field = "Injector flow units", injectorFlowAsMassFlow, {isInjectionEnabled == 1}
field = "Injector flow(cc/min)", injector_flow, {isInjectionEnabled}, {!injectorFlowAsMassFlow}
field = "Injector flow(g/s)", injector_flow, {isInjectionEnabled}, {injectorFlowAsMassFlow}
field = "Injector flow units", injectorFlowAsMassFlow, {isInjectionEnabled}
field = "Fuel rail pressure sensor", injectorPressureType, { isInjectionEnabled && (highPressureFuel_hwChannel || lowPressureFuel_hwChannel) }
field = "Injector flow compensation mode", injectorCompensationMode, { isInjectionEnabled }
field = "Injector reference pressure", fuelReferencePressure, { isInjectionEnabled && injectorCompensationMode != 0 }
dialog = fuelParams, "Fuel characteristics", yAxis
field = "Stoichiometric ratio", stoichRatioPrimary, {isInjectionEnabled == 1}
field = "E100 stoichiometric ratio", stoichRatioSecondary, {isInjectionEnabled == 1 && flexSensorPin != 0 }
field = "Stoichiometric ratio", stoichRatioPrimary, {isInjectionEnabled}
field = "E100 stoichiometric ratio", stoichRatioSecondary, {isInjectionEnabled && flexSensorPin != 0 }
dialog = injectorPins, "Injector Outputs", yAxis
field = "Use only first half of outputs for batch mode"
@ -2411,9 +2412,9 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "x^7", injectorCorrectionPolynomial8
dialog = injectorNonlinearFord, "Ford-model Small Pulse Correction", yAxis
field = "Small pulse slope (ALOSL)", fordInjectorSmallPulseSlope
field = "Small pulse slope (ALOSL, g/s)", fordInjectorSmallPulseSlope
field = "Set this to 'mass flow'", injectorFlowAsMassFlow
field = "Large pulse slope (AHISL)", injector_flow
field = "Large pulse slope (AHISL, g/s)", injector_flow
field = "Small pulse breakpoint (FUEL_BKPT)", fordInjectorSmallPulseBreakPoint
dialog = injectorNonlinear
@ -2488,7 +2489,8 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
dialog = stagedInjection, "", yAxis
field = "Enable", enableStagedInjection, {isInjectionEnabled}
field = ""
field = "Secondary injector flow", injectorSecondary_flow {isInjectionEnabled && enableStagedInjection}
field = "Secondary injector flow(cc/min)", injectorSecondary_flow, {isInjectionEnabled && enableStagedInjection}, {!injectorFlowAsMassFlow}
field = "Secondary injector flow(g/s)", injectorSecondary_flow, {isInjectionEnabled && enableStagedInjection}, {injectorFlowAsMassFlow}
field = ""
panel = injectorsSecondaryDeadTime, {isInjectionEnabled && enableStagedInjection}