From bf93a7f7b5ccaf6c5d782a1582ee28a1f6fb53de Mon Sep 17 00:00:00 2001 From: David Holdeman Date: Wed, 10 Apr 2024 15:37:23 -0500 Subject: [PATCH] Add isShifting TS indicator --- firmware/controllers/tcu/tc_4.h | 1 - firmware/controllers/tcu/tcu_controller.txt | 1 + firmware/tunerstudio/tunerstudio.template.ini | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/tcu/tc_4.h b/firmware/controllers/tcu/tc_4.h index c3c85dd4d1..a351756327 100644 --- a/firmware/controllers/tcu/tc_4.h +++ b/firmware/controllers/tcu/tc_4.h @@ -13,7 +13,6 @@ public: private: void setTccState(gear_e gear); void setPcState(gear_e gear); - bool isShifting = false; gear_e shiftingFrom; }; diff --git a/firmware/controllers/tcu/tcu_controller.txt b/firmware/controllers/tcu/tcu_controller.txt index 2302392548..2897d6e0e0 100644 --- a/firmware/controllers/tcu/tcu_controller.txt +++ b/firmware/controllers/tcu/tcu_controller.txt @@ -4,4 +4,5 @@ struct_no_prefix tcu_controller_s float lastShiftTime uint8_t tcu_currentRange;"TCU: Current Range";"", 1, 0, 0, 0, 0 int8_t pressureControlDuty;"TCU: EPC Duty";"%",1,0,0,100,0 + bit isShifting; end_struct diff --git a/firmware/tunerstudio/tunerstudio.template.ini b/firmware/tunerstudio/tunerstudio.template.ini index 894279956a..b25c0f7b8c 100644 --- a/firmware/tunerstudio/tunerstudio.template.ini +++ b/firmware/tunerstudio/tunerstudio.template.ini @@ -1773,6 +1773,8 @@ gaugeCategory = GPPWM Outputs ; indicator = { isInjectionEnabled && fuelCutReason == 0 }, { Inj: bitStringValue(injModeList, currentInjectionMode) }, { Inj: bitStringValue(injModeList, currentInjectionMode) }, white, black, white, black ; indicator = { isIgnitionEnabled && sparkCutReason == 0 }, { Ign: bitStringValue(ignModeList, currentIgnitionMode) }, { Ign: bitStringValue(ignModeList, currentIgnitionMode) }, white, black, white, black + indicatorTemplate = {isShifting}, "In Gear", "Shifting", white, black, green, black@@if_ts_show_tcu + ; looks like TS would append four system indicators below: Data Logging, ???, Not Connected, Protocol Error [KeyActions]