Sim: Fix FCU handler

This commit is contained in:
Joshua Davidson 2019-02-25 17:06:26 -05:00
parent 4b8b0c27ba
commit 799b57e4e1

View file

@ -176,7 +176,7 @@ var iasNow = props.globals.getNode("/instrumentation/airspeed-indicator/indicate
var machNow = props.globals.getNode("/instrumentation/airspeed-indicator/indicated-mach", 1);
var spdManaged = props.globals.getNode("/it-autoflight/input/spd-managed", 1);
var showHDG = props.globals.getNode("/it-autoflight/custom/show-hdg", 1);
var trkfpaSW = props.globals.getNode("/it-autoflight/custom/trk-fpa", 1);
var trkFpaSW = props.globals.getNode("/it-autoflight/custom/trk-fpa", 1);
var latMode = props.globals.getNode("/it-autoflight/output/lat", 1);
var vertMode = props.globals.getNode("/it-autoflight/output/vert", 1);
var locArm = props.globals.getNode("/it-autoflight/output/loc-armed", 1);
@ -466,7 +466,7 @@ var APPanel = {
},
VSPush: func() {
if (dcEss.getValue() >= 25) {
if (trkfpaSW.getBoolValue()) {
if (trkFpaSW.getBoolValue()) {
setprop("/it-autoflight/input/vert", 5);
setprop("/it-autoflight/input/fpa", 0);
} else {
@ -477,7 +477,7 @@ var APPanel = {
},
VSPull: func() {
if (dcEss.getValue() >= 25) {
if (trkfpaSW.getBoolValue()) {
if (trkFpaSW.getBoolValue()) {
setprop("/it-autoflight/input/vert", 5);
} else {
setprop("/it-autoflight/input/vert", 1);
@ -523,7 +523,7 @@ var APPanel = {
fpaSet.setValue(fpaTemp);
}
}
if ((vertMode.getValue() != 1 and !trkfpaSW.getBoolValue()) or (vertMode.getValue() != 5 and trkfpaSW.getBoolValue())) {
if ((vertMode.getValue() != 1 and !trkFpaSW.getBoolValue()) or (vertMode.getValue() != 5 and trkFpaSW.getBoolValue())) {
me.VSPull();
}
}