From 99c29809c5ff754ba261f3dc1720dd578874e721 Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Mon, 19 Nov 2018 15:43:55 +0000 Subject: [PATCH] Fix to-memo again! --- AircraftConfig/acconfig.nas | 1 + Nasal/ECAM.nas | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AircraftConfig/acconfig.nas b/AircraftConfig/acconfig.nas index c2205bab..1d75e514 100644 --- a/AircraftConfig/acconfig.nas +++ b/AircraftConfig/acconfig.nas @@ -423,6 +423,7 @@ var takeoff = func { libraries.flaptimer.start(); setprop("/controls/flight/elevator-trim", -0.07); systems.arm_autobrake(3); + libraries.ECAM.toConfig(); } }); } diff --git a/Nasal/ECAM.nas b/Nasal/ECAM.nas index 5b64c150..ddf4e2bc 100644 --- a/Nasal/ECAM.nas +++ b/Nasal/ECAM.nas @@ -162,7 +162,7 @@ var ECAM = { setprop("/ECAM/right-msg", "NONE"); } - if (getprop("/controls/autobrake/mode") == 3 and getprop("/controls/switches/no-smoking-sign") == 1 and getprop("/controls/switches/seatbelt-sign") == 1 and getprop("/controls/flight/speedbrake-arm") == 1 and getprop("/controls/flight/flap-pos") > 0 + if (getprop("/controls/autobrake/mode") == 3 and getprop("/controls/lighting/no-smoking-sign") == 1 and getprop("/controls/lighting/seatbelt-sign") == 1 and getprop("/controls/flight/speedbrake-arm") == 1 and getprop("/controls/flight/flap-pos") > 0 and getprop("/controls/flight/flap-pos") < 5) { # Do nothing } else { @@ -235,7 +235,7 @@ var ECAM = { setprop("/ECAM/engine-start-time", getprop("/ECAM/engine-start-time") - 120); } - if (getprop("/controls/autobrake/mode") == 3 and getprop("/controls/switches/no-smoking-sign") == 1 and getprop("/controls/switches/seatbelt-sign") == 1 and getprop("/controls/flight/speedbrake-arm") == 1 and getprop("/controls/flight/flap-pos") > 0 + if (getprop("/controls/autobrake/mode") == 3 and getprop("/controls/lighting/no-smoking-sign") == 1 and getprop("/controls/lighting/seatbelt-sign") == 1 and getprop("/controls/flight/speedbrake-arm") == 1 and getprop("/controls/flight/flap-pos") > 0 and getprop("/controls/flight/flap-pos") < 5) { setprop("/ECAM/to-config", 1); }