board-specific usability #808

hiding menu items for specific boards
This commit is contained in:
rusefi 2019-06-01 18:29:50 -04:00
parent 5282e29d7c
commit 5b8dfbf444
9 changed files with 23 additions and 19 deletions

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
#define ts_show_hip9011 false

View File

@ -0,0 +1,2 @@
#define ts_show_hip9011 false
#define ts_show_etb false

View File

@ -1203,3 +1203,7 @@ end_struct
#define GAUGE_NAME_DWELL_DUTY "dwell: coil duty cycle"
#define GAUGE_COIL_DWELL_TIME "dwell: coil charge time"
! some board files override this value using prepend file
#define ts_show_hip9011 true
#define ts_show_etb true

View File

@ -72,7 +72,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START
; this section was generated automatically by ConfigDefinition.jar based on integration\rusefi_config.txt Sat Jun 01 17:13:22 EDT 2019
; this section was generated automatically by ConfigDefinition.jar based on integration\rusefi_config.txt Sat Jun 01 18:20:38 EDT 2019
pageSize = 20000
page = 1
@ -1999,8 +1999,8 @@ menuDialog = main
subMenu = std_separator
subMenu = fanSetting, "Fan Settings"
subMenu = malfunction, "MIL Settings"
subMenu = etbDialog, "Electronic Throttle Body (beta version)"
subMenu = etbTpsBiasCurve, "Electronic Throttle Body Bias Curve"
subMenu = etbDialog, "Electronic Throttle Body (beta version)"
subMenu = etbTpsBiasCurve, "Electronic Throttle Body Bias Curve"
subMenu = std_separator
subMenu = std_realtime, "&Realtime Display", 0
@ -2093,7 +2093,7 @@ menuDialog = main
subMenu = narrowToWideOxygenCurve, "Narrow to Wideband approximation"
subMenu = cj125Function, "CJ125 Settings (wbo decoder)"
subMenu = std_separator
subMenu = hipFunction, "HIP9011 Settings (knock sensor) (alpha version)"
subMenu = hipFunction, "HIP9011 Settings (knock sensor) (alpha version)"
subMenu = speedSensor, "Vehicle Speed sensor"
subMenu = oilPressureSensor, "Oil Pressure sensor"

View File

@ -1065,8 +1065,8 @@ menuDialog = main
subMenu = std_separator
subMenu = fanSetting, "Fan Settings"
subMenu = malfunction, "MIL Settings"
subMenu = etbDialog, "Electronic Throttle Body (beta version)"
subMenu = etbTpsBiasCurve, "Electronic Throttle Body Bias Curve"
subMenu = etbDialog, "Electronic Throttle Body (beta version)" @@if_ts_show_etb
subMenu = etbTpsBiasCurve, "Electronic Throttle Body Bias Curve" @@if_ts_show_etb
subMenu = std_separator
subMenu = std_realtime, "&Realtime Display", 0
@ -1159,7 +1159,7 @@ menuDialog = main
subMenu = narrowToWideOxygenCurve, "Narrow to Wideband approximation"
subMenu = cj125Function, "CJ125 Settings (wbo decoder)"
subMenu = std_separator
subMenu = hipFunction, "HIP9011 Settings (knock sensor) (alpha version)"
subMenu = hipFunction, "HIP9011 Settings (knock sensor) (alpha version)" @@if_ts_show_hip9011
subMenu = speedSensor, "Vehicle Speed sensor"
subMenu = oilPressureSensor, "Oil Pressure sensor"

View File

@ -72,7 +72,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START
; this section was generated automatically by ConfigDefinition.jar based on integration\rusefi_config.txt Sat Jun 01 17:13:23 EDT 2019
; this section was generated automatically by ConfigDefinition.jar based on integration\rusefi_config.txt Sat Jun 01 18:20:42 EDT 2019
pageSize = 20000
page = 1
@ -1999,8 +1999,8 @@ menuDialog = main
subMenu = std_separator
subMenu = fanSetting, "Fan Settings"
subMenu = malfunction, "MIL Settings"
subMenu = etbDialog, "Electronic Throttle Body (beta version)"
subMenu = etbTpsBiasCurve, "Electronic Throttle Body Bias Curve"
subMenu = etbDialog, "Electronic Throttle Body (beta version)"
subMenu = etbTpsBiasCurve, "Electronic Throttle Body Bias Curve"
subMenu = std_separator
subMenu = std_realtime, "&Realtime Display", 0
@ -2093,7 +2093,7 @@ menuDialog = main
subMenu = narrowToWideOxygenCurve, "Narrow to Wideband approximation"
subMenu = cj125Function, "CJ125 Settings (wbo decoder)"
subMenu = std_separator
subMenu = hipFunction, "HIP9011 Settings (knock sensor) (alpha version)"
subMenu = hipFunction, "HIP9011 Settings (knock sensor) (alpha version)"
subMenu = speedSensor, "Vehicle Speed sensor"
subMenu = oilPressureSensor, "Oil Pressure sensor"

View File

@ -72,7 +72,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START
; this section was generated automatically by ConfigDefinition.jar based on integration\rusefi_config.txt Sat Jun 01 17:13:23 EDT 2019
; this section was generated automatically by ConfigDefinition.jar based on integration\rusefi_config.txt Sat Jun 01 18:23:17 EDT 2019
pageSize = 20000
page = 1
@ -1999,8 +1999,8 @@ menuDialog = main
subMenu = std_separator
subMenu = fanSetting, "Fan Settings"
subMenu = malfunction, "MIL Settings"
subMenu = etbDialog, "Electronic Throttle Body (beta version)"
subMenu = etbTpsBiasCurve, "Electronic Throttle Body Bias Curve"
subMenu = etbDialog, "Electronic Throttle Body (beta version)"
subMenu = etbTpsBiasCurve, "Electronic Throttle Body Bias Curve"
subMenu = std_separator
subMenu = std_realtime, "&Realtime Display", 0
@ -2093,7 +2093,6 @@ menuDialog = main
subMenu = narrowToWideOxygenCurve, "Narrow to Wideband approximation"
subMenu = cj125Function, "CJ125 Settings (wbo decoder)"
subMenu = std_separator
subMenu = hipFunction, "HIP9011 Settings (knock sensor) (alpha version)"
subMenu = speedSensor, "Vehicle Speed sensor"
subMenu = oilPressureSensor, "Oil Pressure sensor"

View File

@ -72,7 +72,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START
; this section was generated automatically by ConfigDefinition.jar based on integration\rusefi_config.txt Sat Jun 01 17:13:24 EDT 2019
; this section was generated automatically by ConfigDefinition.jar based on integration\rusefi_config.txt Sat Jun 01 18:23:19 EDT 2019
pageSize = 20000
page = 1
@ -1999,8 +1999,6 @@ menuDialog = main
subMenu = std_separator
subMenu = fanSetting, "Fan Settings"
subMenu = malfunction, "MIL Settings"
subMenu = etbDialog, "Electronic Throttle Body (beta version)"
subMenu = etbTpsBiasCurve, "Electronic Throttle Body Bias Curve"
subMenu = std_separator
subMenu = std_realtime, "&Realtime Display", 0
@ -2093,7 +2091,6 @@ menuDialog = main
subMenu = narrowToWideOxygenCurve, "Narrow to Wideband approximation"
subMenu = cj125Function, "CJ125 Settings (wbo decoder)"
subMenu = std_separator
subMenu = hipFunction, "HIP9011 Settings (knock sensor) (alpha version)"
subMenu = speedSensor, "Vehicle Speed sensor"
subMenu = oilPressureSensor, "Oil Pressure sensor"