From 67ae1e461a076eb2819512a710261df1b6fb82c7 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Tue, 17 Mar 2020 19:56:01 +0000 Subject: [PATCH] Add proper implementation of altitude alert, works according to spec, pls test --- AircraftConfig/acconfig.nas | 4 +- Models/FlightDeck/a320.flightdeck.xml | 4 + Models/Instruments/PFD/PFD.nas | 127 +- Models/Instruments/PFD/res/pfd.svg | 8108 +++++++++++++------------ Nasal/ECAM/ECAM-logic.nas | 44 +- Nasal/ECAM/ECAM-phases.nas | 1 + Systems/ecam-proprules.xml | 43 +- 7 files changed, 4257 insertions(+), 4074 deletions(-) diff --git a/AircraftConfig/acconfig.nas b/AircraftConfig/acconfig.nas index 5f875208..047f70e0 100644 --- a/AircraftConfig/acconfig.nas +++ b/AircraftConfig/acconfig.nas @@ -190,13 +190,13 @@ setlistener("/sim/signals/fdm-initialized", func { writeSettings(); if (getprop("options/system/save-state") == 1) { - save.restore(save.default, getprop("/sim/fg-home") ~ "/Export/" ~ getprop("/sim/aircraft") ~ "-save.xml"); + save.restore(save.default, getprop("sim/fg-home") ~ "/Export/" ~ getprop("sim/aircraft") ~ "-save.xml"); } spinning.stop(); }); setlistener("/sim/signals/exit", func { - save.save(save.default, getprop("/sim/fg-home") ~ "/Export/" ~ getprop("/sim/aircraft") ~ "-save.xml"); + save.save(save.default, getprop("sim/fg-home") ~ "/Export/" ~ getprop("sim/aircraft") ~ "-save.xml"); }); var renderingSettings = { diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index cb85e62d..3cc62b29 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -5307,6 +5307,10 @@ nasal