From 327e04b5c08135aa57c5e20cbaf01a1199a4ab4f Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Sat, 28 Dec 2019 17:55:37 +0000 Subject: [PATCH] Fail the autopilot and autothrust depending on the electrical status of the aircraft --- Nasal/Systems/electrical.nas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Nasal/Systems/electrical.nas b/Nasal/Systems/electrical.nas index e905f7b7..d83fe6ed 100644 --- a/Nasal/Systems/electrical.nas +++ b/Nasal/Systems/electrical.nas @@ -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"); } } }