Skip to content

Commit

Permalink
put injector units in the UI, not in the actual field #42
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Mar 19, 2024
1 parent 10e5858 commit 7de17ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions firmware/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions firmware/integration/rusefi_config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
16 changes: 9 additions & 7 deletions firmware/tunerstudio/rusefi.input
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}

Expand Down

0 comments on commit 7de17ea

Please sign in to comment.