From d5ab68433c7b838379cb51404a70f79068aa0b99 Mon Sep 17 00:00:00 2001 From: merspieler Date: Thu, 20 Sep 2018 16:13:10 +0200 Subject: [PATCH] Added first animation to crz page Signed-off-by: merspieler --- Models/Instruments/Lower-ECAM/Lower-ECAM.nas | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas index a78c0722..7e83a356 100644 --- a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas +++ b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas @@ -779,7 +779,10 @@ var canvas_lowerECAM_crz = { return m; }, getKeys: func() { - return ["TAT","SAT","GW","UTCh","UTCm"]; + return ["TAT","SAT","GW","UTCh","UTCm","Oil1","Oil2","FUsed1","FUsed2","FUsed","VIB1N1","VIB1N2","VIB2N1","VIB2N2","deltaPSI","LDGELEV-AUTO","LDGELEV","CABVS","CABALT","VS-Arrow-UP","VS-Arrow-DN","CKPT-TEMP","FWD-TEMP","AFT-TEMP"]; + + me["Oil1"].setText(sprintf("%s", getprop("/engines/engine[0]/oil-qt-actual"))); + me["Oil2"].setText(sprintf("%s", getprop("/engines/engine[1]/oil-qt-actual"))); }, update: func() { @@ -1494,8 +1497,8 @@ var canvas_lowerECAM_eng = { }, update: func() { # Oil Quantity - me["OilQT1"].setText(sprintf("%s", math.round(getprop("/engines/engine[0]/oil-qt-actual")))); - me["OilQT2"].setText(sprintf("%s", math.round(getprop("/engines/engine[1]/oil-qt-actual")))); + me["OilQT1"].setText(sprintf("%s", int(getprop("/engines/engine[0]/oil-qt-actual")))); + me["OilQT2"].setText(sprintf("%s", int(getprop("/engines/engine[1]/oil-qt-actual")))); me["OilQT1-decimal"].setText(sprintf("%s", int(10*math.mod(getprop("/engines/engine[0]/oil-qt-actual"),1)))); me["OilQT2-decimal"].setText(sprintf("%s", int(10*math.mod(getprop("/engines/engine[1]/oil-qt-actual"),1))));