1
0
Fork 0

Fix decision height

This commit is contained in:
Jonathan Redpath 2022-04-29 20:48:35 +01:00
parent c2bc2c8e55
commit ed70a34d9d

View file

@ -1052,7 +1052,11 @@ var canvas_pfd = {
}
}),
props.UpdateManager.FromHashList(["showDecisionHeight","agl","decision","radio","baro","radioNo"], 0.5, func(val) {
if (val.showDecisionHeight) {
if (!val.showDecisionHeight) {
obj["FMA_dh"].hide();
obj["FMA_dhn"].hide();
obj["FMA_nodh"].hide();
if (val.agl <= 2500) {
obj["AI_agl"].show();
if (val.agl <= val.decision) {
@ -1070,10 +1074,6 @@ var canvas_pfd = {
obj["AI_agl"].hide();
}
} else {
obj["FMA_dh"].hide();
obj["FMA_dhn"].hide();
obj["FMA_nodh"].hide();
if (val.agl <= 2500) {
obj["AI_agl"].show();