flexible injector naming #6107

This commit is contained in:
rusefillc 2024-03-01 12:54:24 -05:00
parent cde5a52f3b
commit d777e84487
4 changed files with 32 additions and 11 deletions

View File

@ -20,6 +20,9 @@
#define ts_show_ignitionPinMode false
#define ts_show_tps2 false
#define ts_show_cylinder_5 false
#define ts_show_cylinder_10 false
#define show_Hellen_hyundai_154 false

View File

@ -20,7 +20,7 @@
#define ts_show_ignitionPinMode false
#define ts_show_tps2 false
#define ts_show_cylinder_10 false

View File

@ -1947,6 +1947,12 @@ end_struct
#define GAUGE_NAME_TRG_ERR "Trigger Error Counter"
#define GAUGE_NAME_TRG_GAP "Sync: Trigger Latest Ratio"
#define INJECTOR_1_NAME "Injector #1"
#define INJECTOR_2_NAME "Injector #2"
#define COIL_1_NAME "Spark #1"
#define COIL_2_NAME "Spark #2"
#define GAUGE_CATEGORY_TIMING "Timing"
#define GAUGE_CATEGORY_SYNC "Sync"
#define GAUGE_CATEGORY_FUEL_MATH "Fuel: math"
@ -2313,6 +2319,18 @@ end_struct
#define ts_show_tps2 true
#define ts_show_onboard_accelerometer false
#define ts_show_vvt_output true
! LAME! todo make this way less lame
#define ts_show_cylinder_2 true
#define ts_show_cylinder_3 true
#define ts_show_cylinder_4 true
#define ts_show_cylinder_5 true
#define ts_show_cylinder_6 true
#define ts_show_cylinder_7 true
#define ts_show_cylinder_8 true
#define ts_show_cylinder_9 true
#define ts_show_cylinder_10 true
#define ts_show_cylinder_11 true
#define ts_show_cylinder_12 true
#define ts_show_analog_divider true
#define ts_show_spi true

View File

@ -2567,16 +2567,16 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
commandButton = "Abort test", cmd_test_cancel
dialog = testInjectors, "Injector Test"
commandButton = "Injector #1", cmd_test_inj1
commandButton = "Injector #2", cmd_test_inj2, { cylindersCount >= 2 }
commandButton = "Injector #3", cmd_test_inj3, { cylindersCount >= 3 }
commandButton = "Injector #4", cmd_test_inj4, { cylindersCount >= 4 }
commandButton = "Injector #5", cmd_test_inj5, { cylindersCount >= 5 }
commandButton = @@INJECTOR_1_NAME@@, cmd_test_inj1
commandButton = @@INJECTOR_2_NAME@@, cmd_test_inj2, { cylindersCount >= 2 }
commandButton = "Injector #3", cmd_test_inj3, { cylindersCount >= 3 }@@if_ts_show_cylinder_3
commandButton = "Injector #4", cmd_test_inj4, { cylindersCount >= 4 }@@if_ts_show_cylinder_4
commandButton = "Injector #5", cmd_test_inj5, { cylindersCount >= 5 }@@if_ts_show_cylinder_5
commandButton = "Injector #6", cmd_test_inj6, { cylindersCount >= 6 }
commandButton = "Injector #7", cmd_test_inj7, { cylindersCount >= 7 }
commandButton = "Injector #8", cmd_test_inj8, { cylindersCount >= 8 }
commandButton = "Injector #9", cmd_test_inj9, { cylindersCount >= 9 }
commandButton = "Injector #10", cmd_test_inj10, { cylindersCount >= 10 }
commandButton = "Injector #10", cmd_test_inj10, { cylindersCount >= 10 }@@if_ts_show_cylinder_10
commandButton = "Injector #11", cmd_test_inj11, { cylindersCount >= 11 }
commandButton = "Injector #12", cmd_test_inj12, { cylindersCount >= 12 }
commandButton = "Abort test", cmd_test_cancel
@ -4490,16 +4490,16 @@ dialog = tcuControls, "Transmission Settings"
panel = etbDialogRight, East
dialog = testSpark, "Spark"
commandButton = "Spark #1", cmd_test_spk1
commandButton = "Spark #2", cmd_test_spk2, { cylindersCount >= 2 }
commandButton = @@COIL_1_NAME@@, cmd_test_spk1
commandButton = @@COIL_2_NAME@@, cmd_test_spk2, { cylindersCount >= 2 }
commandButton = "Spark #3", cmd_test_spk3, { cylindersCount >= 3 }
commandButton = "Spark #4", cmd_test_spk4, { cylindersCount >= 4 }
commandButton = "Spark #5", cmd_test_spk5, { cylindersCount >= 5 }
commandButton = "Spark #5", cmd_test_spk5, { cylindersCount >= 5 }@@if_ts_show_cylinder_5
commandButton = "Spark #6", cmd_test_spk6, { cylindersCount >= 6 }
commandButton = "Spark #7", cmd_test_spk7, { cylindersCount >= 7 }
commandButton = "Spark #8", cmd_test_spk8, { cylindersCount >= 8 }
commandButton = "Spark #9", cmd_test_spk9, { cylindersCount >= 9 }
commandButton = "Spark #10", cmd_test_spk10, { cylindersCount >= 10 }
commandButton = "Spark #10", cmd_test_spk10, { cylindersCount >= 10 }@@if_ts_show_cylinder_10
commandButton = "Spark #11", cmd_test_spk11, { cylindersCount >= 11 }
commandButton = "Spark #12", cmd_test_spk12, { cylindersCount >= 12 }
commandButton = "Abort test", cmd_test_cancel