1
0
Fork 0

Fail the autopilot and autothrust depending on the electrical status of the aircraft

This commit is contained in:
legoboyvdlp R 2019-12-28 17:55:37 +00:00
parent 6363f8a6fa
commit 327e04b5c0

View file

@ -229,8 +229,8 @@ var ELEC = {
if (me.Bus.dcEssShed.getValue() < 25) {
if (getprop("/it-autoflight/output/ap1") == 1) {
fcu.apOff("hard", 1);
if (getprop("/it-autoflight/output/ap2") == 0) {
fcu.athrOff("hard"); # TODO - athr master FMGC logic
if (fcu.FCUController.activeFMGC.getValue() == 1) {
fcu.athrOff("hard");
}
}
}
@ -238,8 +238,8 @@ var ELEC = {
if (me.Bus.dc2.getValue() < 25) {
if (getprop("/it-autoflight/output/ap2") == 1) {
fcu.apOff("hard", 2);
if (getprop("/it-autoflight/output/ap1") == 0) {
fcu.athrOff("hard"); # TODO - athr master FMGC logic
if (fcu.FCUController.activeFMGC.getValue() == 2) {
fcu.athrOff("hard");
}
}
}