From cb42cf6f271056846a81afeaa53ed4baf47ccaa2 Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Thu, 15 Sep 2022 14:54:48 -0400 Subject: [PATCH] dual.ini: EGT state indicator and gauge (#154) Co-authored-by: Andrey Gusakov --- firmware/ini/rusefi_wb_f1_dual.ini | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/firmware/ini/rusefi_wb_f1_dual.ini b/firmware/ini/rusefi_wb_f1_dual.ini index 5c91391..92d85d7 100644 --- a/firmware/ini/rusefi_wb_f1_dual.ini +++ b/firmware/ini/rusefi_wb_f1_dual.ini @@ -137,14 +137,18 @@ AFR1_HeaterDuty = scalar, F32, 84, "%", 100, 0, 0.0, 100.0, 0 ; EGT0 EGT0_temp = scalar, F32, 96, "C", 1, 0, -250.0, 1600.0, 0 EGT0_coldJunction = scalar, F32, 100, "C", 1, 0, -55.0, 127.0, 0 +EGT0_state = scalar, U08, 104, "", 1, 0, 0, 4, 0 ; EGT1 EGT1_temp = scalar, F32, 112, "C", 1, 0, -250.0, 1600.0, 0 EGT1_coldJunction = scalar, F32, 116, "C", 1, 0, -55.0, 127.0, 0 +EGT1_state = scalar, U08, 120, "", 1, 0, 0, 4, 0 seconds = scalar, U32, 124, "sec", 1, 0 [PcVariables] + ; Keep in sync with Max31855State enum from max31855.h + EgtStatesList = bits, U08, [0:7], "Ok", "Open Circuit", "Short to GND", "Short to VCC", "No reply" [TableEditor] @@ -181,12 +185,14 @@ gaugeCategory = EGT channel 0 ; Name = Channel, Title, Units, Lo, Hi, LoD, LoW, HiW, HiD, vd, ld, Active EGT0_Gauge = EGT0_temp, "0: EGT", "C", 0.0, 1600.0, 100.0, 250.0, 900.0, 1000.0, 2, 2 EGT0_ColdJunctionGauge = EGT0_coldJunction, "0: EGT CJ", "C", 0.0, 130.0, -55.0, -20.0, 95.0, 105.0, 2, 2 +EGT0_StateGauge = EGT0_state, "0: EGT state", "", 0.0, 5.0, 0.0, 0.0, 0.5, 0.5, 2, 2 ; EGT1 gaugeCategory = EGT channel 1 ; Name = Channel, Title, Units, Lo, Hi, LoD, LoW, HiW, HiD, vd, ld, Active EGT1_Gauge = EGT1_temp, "1: EGT", "C", 0.0, 1600.0, 100.0, 250.0, 900.0, 1000.0, 2, 2 EGT1_ColdJunctionGauge = EGT1_coldJunction, "1: EGT CJ", "C", 0.0, 130.0, -55.0, -20.0, 95.0, 105.0, 2, 2 +EGT1_StateGauge = EGT1_state, "1: EGT state", "", 0.0, 5.0, 0.0, 0.0, 0.5, 0.5, 2, 2 [FrontPage] ; Gauges are numbered left to right, top to bottom. @@ -203,6 +209,9 @@ EGT1_ColdJunctionGauge = EGT1_coldJunction, "1: EGT CJ", "C", gauge7 = EGT1_Gauge gauge8 = TestGauge + indicator = { EGT0_state }, "EGT0 ok", { EGT0: bitStringValue(EgtStatesList, EGT0_state)}, green, black, red, black + indicator = { EGT1_state }, "EGT1 ok", { EGT1: bitStringValue(EgtStatesList, EGT1_state)}, green, black, red, black + [KeyActions] [Datalog]