From f6d20c4d12d2c5fbccfe4c8d79b5661a94e651f1 Mon Sep 17 00:00:00 2001 From: merspieler Date: Sun, 30 Sep 2018 15:38:40 +0200 Subject: [PATCH] Added STROBE LT OFF ECAM MEMO Signed-off-by: merspieler --- Nasal/ECAM-controller.nas | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Nasal/ECAM-controller.nas b/Nasal/ECAM-controller.nas index 691d4bf4..20179fd1 100644 --- a/Nasal/ECAM-controller.nas +++ b/Nasal/ECAM-controller.nas @@ -156,7 +156,8 @@ var gnd_splrs = warning.new(msg: "GND SPLRS ARMED", active: 0, colour: "g", aura var fob_3T = warning.new(msg: "FOB BELOW 3T", active: 0, colour: "g", aural: "none", light: "none", noRepeat: 0), var refuelg = warning.new(msg: "REFUELG", active: 0, colour: "g", aural: "none", light: "none", noRepeat: 0), var seatbelts = warning.new(msg: "SEAT BELTS", active: 0, colour: "g", aural: "none", light: "none", noRepeat: 0), -var nosmoke = warning.new(msg: "NO SMOKING", active: 0, colour: "g", aural: "none", light: "none", noRepeat: 0) +var nosmoke = warning.new(msg: "NO SMOKING", active: 0, colour: "g", aural: "none", light: "none", noRepeat: 0), +var strobe_lt_off = warning.new(msg: "STROBE LT OFF", active: 0, colour: "g", aural: "none", light: "none", noRepeat: 0) ]); var memos = std.Vector.new([ @@ -273,6 +274,12 @@ var messages_memo = func { } else { nosmoke.active = 0; } + + if (getprop("/controls/lighting/strobe") == 0 and getprop("/gear/gear[1]/wow") == 0) { + strobe_lt_off.active = 1; + } else { + strobe_lt_off.active = 0; + } if (getprop("/consumables/fuel/total-fuel-lbs") < 6000 and getprop("/ECAM/left-msg") != "TO-MEMO" and getprop("/ECAM/left-msg") != "LDG-MEMO") { # assuming US short ton 2000lb fob_3T.active = 1;