From 70f04f032bfc0b85882996144a031e0638bba49a Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Tue, 24 Sep 2024 00:05:22 +0300 Subject: [PATCH] TS: CAN UEGO diagnostic --- firmware/tunerstudio/tunerstudio.template.ini | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/firmware/tunerstudio/tunerstudio.template.ini b/firmware/tunerstudio/tunerstudio.template.ini index f58689f81c..40d116e08c 100644 --- a/firmware/tunerstudio/tunerstudio.template.ini +++ b/firmware/tunerstudio/tunerstudio.template.ini @@ -3600,15 +3600,49 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_ dialog = egoSettings_IO2, "O2 Sensor 2 I/O" field = "Input channel", afr_hwChannel2 + indicatorPanel = uegoCan0Indicators, 1, { enableAemXSeries == 1 } + indicator = { faultCode0 == 7 }, "RusEFI WBO", "AEM Gauge", green, black, yellow, black + + indicatorPanel = uegoCan1Indicators, 1, { enableAemXSeries == 1 } + indicator = { faultCode1 == 7 }, "RusEFI WBO", "AEM Gauge", green, black, yellow, black + + indicatorPanel = uegoCan0IndicatorsExt, 1, { enableAemXSeries == 1 && faultCode0 != 7 } + indicator = { faultCode0 == 0 || faultCode0 == 7 }, "Failed", "Ready/Ok", red, black, green, black + indicator = { faultCode0 == 2 }, "Heating allowed", "Heating prohibited", green, black, yellow, black + indicator = { faultCode0 == 1 }, "Communication ok", "Timeout reading", green, black, red, black + indicator = { faultCode0 == 3 }, "No heating failure", "Heating failed", green, black, red, black + indicator = { faultCode0 == 4 }, "No overheat", "Overheat", green, black, red, black + indicator = { faultCode0 == 5 }, "No underheat", "Underheat", green, black, red, black + indicator = { faultCode0 == 6 }, "Heater supply ok", "No heater supply", green, black, yellow, black + + indicatorPanel = uegoCan1IndicatorsExt, 1, { enableAemXSeries == 1 && faultCode1 != 7 } + indicator = { faultCode1 == 0 || faultCode1 == 7 }, "Failed", "Ready/Ok", red, black, green, black + indicator = { faultCode1 == 2 }, "Heating allowed", "Heating prohibited", green, black, yellow, black + indicator = { faultCode1 == 1 }, "Communication ok", "Timeout reading", green, black, red, black + indicator = { faultCode1 == 3 }, "No heating failure", "Heating failed", green, black, red, black + indicator = { faultCode1 == 4 }, "No overheat", "Overheat", green, black, red, black + indicator = { faultCode1 == 5 }, "No underheat", "Underheat", green, black, red, black + indicator = { faultCode1 == 6 }, "Heater supply ok", "No heater supply", green, black, yellow, black + + dialog = uegoCanStatus, "CAN UEGO 1, 2 Status", border + panel = uegoCan0Indicators, West + panel = uegoCan1Indicators, East + + dialog = uegoCanStatusExt, "CAN UEGO 1, 2 Extended Status", border + panel = uegoCan0IndicatorsExt, West + panel = uegoCan1IndicatorsExt, East + dialog = uegoCan, "CAN UEGO/wideband O2" field = "Support for AEM or RusEFI CAN UEGO" field = "Enable CAN Wideband", enableAemXSeries, { canReadEnabled } field = "Wideband CAN bus", widebandOnSecondBus@@if_ts_show_wbo_canbus_index - field = flipWboChannels, flipWboChannels + field = "Swap channels 1 and 2", flipWboChannels, flipWboChannels field = "Force O2 sensor heating", forceO2Heating dialog = egoSettings, "", yAxis panel = uegoCan + panel = uegoCanStatus + panel = uegoCanStatusExt panel = egoSettings_IO1 panel = egoSettings_IO2, {afr_hwChannel != @@ADC_CHANNEL_NONE@@ && enableAemXSeries == 0}@@if_ts_show_ego2 panel = egoSettings_sensor, {afr_hwChannel != @@ADC_CHANNEL_NONE@@ && enableAemXSeries == 0}