diff --git a/Models/Instruments/PFD/PFD.nas b/Models/Instruments/PFD/PFD.nas index aa26b172..424c3323 100644 --- a/Models/Instruments/PFD/PFD.nas +++ b/Models/Instruments/PFD/PFD.nas @@ -19,6 +19,7 @@ var ASItrgtdiff = 0; var ASImax = 0; var ASItrend = 0; var altTens = 0; +var altPolarity = ""; # Fetch nodes: var state1 = props.globals.getNode("/systems/thrust/state1", 1); @@ -807,7 +808,12 @@ var canvas_PFD_base = { me["ALT_two"].setText(sprintf("%03d", abs(me.middleAltText-5))); me["ALT_one"].setText(sprintf("%03d", abs(me.middleAltText-10))); - me["ALT_digits"].setText(sprintf("%s", altitude_pfd.getValue())); + if (altitude.getValue() < 0) { + altPolarity = "-"; + } else { + altPolarity = ""; + } + me["ALT_digits"].setText(sprintf("%s%d", altPolarity, altitude_pfd.getValue())); altTens = num(right(sprintf("%02d", altitude.getValue()), 2)); me["ALT_tens"].setTranslation(0, altTens * 1.392); diff --git a/Nasal/libraries.nas b/Nasal/libraries.nas index cf748ebf..67d5ec48 100644 --- a/Nasal/libraries.nas +++ b/Nasal/libraries.nas @@ -276,7 +276,7 @@ setlistener("/options/steep-ils", func { canvas.Text._lastText = canvas.Text["_lastText"]; canvas.Text.setText = func(text) { - if (text == me._lastText) {return me;} + if (text == me._lastText and text != nil and size(text) == size(me._lastText)) {return me;} me._lastText = text; me.set("text", typeof(text) == 'scalar' ? text : ""); }; diff --git a/Systems/libraries.xml b/Systems/libraries.xml index 9cfa1f88..5d635c95 100644 --- a/Systems/libraries.xml +++ b/Systems/libraries.xml @@ -90,7 +90,7 @@ - /engines/engine[0]/n2-actual + /engines/engine[0]/n2-actual11 25848
@@ -107,7 +107,7 @@ - /engines/engine[1]/n2-actual + /engines/engine[1]/n2-actual11 25848
@@ -125,7 +125,7 @@
- /instrumentation/altimeter/indicated-altitude-ft + /instrumentation/altimeter/indicated-altitude-ft 100
@@ -143,7 +143,7 @@
- /it-autoflight/internal/vert-speed-fpm + /it-autoflight/internal/vert-speed-fpm 100
@@ -372,7 +372,7 @@ Outflow Valve noise-spike - /systems/pressurization/outflowpos + /systems/pressurization/outflowpos /systems/pressurization/outflowpos-norm 1 @@ -408,7 +408,7 @@ Cabin VS noise-spike - /systems/pressurization/vs + /systems/pressurization/vs /systems/pressurization/vs-norm 500 @@ -442,7 +442,7 @@ - /it-autoflight/internal/vert-speed-fpm + /it-autoflight/internal/vert-speed-fpm-50000 -750 -2000 -750 -1000 -250 @@ -468,7 +468,7 @@
- /systems/pressurization/outflowpos-man + /systems/pressurization/outflowpos-man0.0-10000.5 01.0 2500 @@ -555,7 +555,7 @@
- fdm/jsbsim/inertia/weight-kg + fdm/jsbsim/inertia/weight-kg160000405001650004000017000039500 diff --git a/revision.txt b/revision.txt index 3084ff19..175c1b51 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4724 \ No newline at end of file +4725 \ No newline at end of file