Added first animation to crz page

Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
merspieler 2018-09-20 16:13:10 +02:00
parent 5341364c0c
commit d5ab68433c

View file

@ -779,7 +779,10 @@ var canvas_lowerECAM_crz = {
return m; return m;
}, },
getKeys: func() { 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() { update: func() {
@ -1494,8 +1497,8 @@ var canvas_lowerECAM_eng = {
}, },
update: func() { update: func() {
# Oil Quantity # Oil Quantity
me["OilQT1"].setText(sprintf("%s", math.round(getprop("/engines/engine[0]/oil-qt-actual")))); me["OilQT1"].setText(sprintf("%s", int(getprop("/engines/engine[0]/oil-qt-actual"))));
me["OilQT2"].setText(sprintf("%s", math.round(getprop("/engines/engine[1]/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["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)))); me["OilQT2-decimal"].setText(sprintf("%s", int(10*math.mod(getprop("/engines/engine[1]/oil-qt-actual"),1))));