Skip to content

Commit 5fc917c

Browse files
committed
disabled taws logic when taws is hidden
1 parent 8335746 commit 5fc917c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

plugins/sasl/data/modules/Custom Module/main_panel/taws/taws_logic.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ defineProperty("sp_fail", globalPropertyi("tu154b2/custom/taws/sppz_fail"))
7171
defineProperty("rp_fail", globalPropertyi("tu154b2/custom/taws/rppz_fail"))
7272
defineProperty("rv_fail", globalPropertyi("tu154b2/custom/failures/rv2_fail"))
7373
defineProperty("vbe_fail", globalPropertyi("sim/operation/failures/rel_cop_alt"))
74+
show_taws= globalPropertyi("tu154b2/custom/anim/show_taws")
7475

7576
local but_view_last = 0
7677
local but_empt_last = 0
@@ -89,7 +90,7 @@ local MASTER = get(ismaster) ~= 1
8990

9091
if MASTER then
9192
local passed=get(frame_time)
92-
local power = get(bus27_volt) > 13 and get(srpbz) == 1
93+
local power = get(bus27_volt) > 13 and get(srpbz) == 1 and get(show_taws)==1
9394
--local sns_power=get(sns)>0 and (get(show_gns)==1 or kln_flag==0)
9495
if not power then
9596
set(mode_set, 0)

plugins/sasl/data/modules/Custom Module/main_panel/taws/taws_warn_logic.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ defineProperty("dis_rppz", globalPropertyi("tu154b2/custom/egpws/dis_rppz"))
8686
defineProperty("dis_gs", globalPropertyi("tu154b2/custom/egpws/dis_gs"))
8787
defineProperty("sp_fail", globalPropertyi("tu154b2/custom/taws/sppz_fail"))
8888
defineProperty("rp_fail", globalPropertyi("tu154b2/custom/taws/rppz_fail"))
89-
89+
show_taws= globalPropertyi("tu154b2/custom/anim/show_taws")
9090

9191
local rv_last = get(rv5_alt)
9292
local sm_rv_vvi = 0 -- smoothed
@@ -131,7 +131,7 @@ function update()
131131
local MASTER = true --get(ismaster) ~= 1
132132

133133

134-
if mode > 0 and mode < 4 then
134+
if mode > 0 and mode < 4 and get(show_taws)==1 then
135135
local passed = get(frame_time)
136136
-- define sources
137137
local baro_alt = get(alt_svs)*0.3048

0 commit comments

Comments
 (0)