diff --git a/A320-main.xml b/A320-main.xml
index b307b78a..5f9f85b2 100644
--- a/A320-main.xml
+++ b/A320-main.xml
@@ -628,6 +628,8 @@
1
1
1
+ 1
+ 1
0
0
diff --git a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas
index 5e3f4113..444669ac 100644
--- a/Models/Instruments/Lower-ECAM/Lower-ECAM.nas
+++ b/Models/Instruments/Lower-ECAM/Lower-ECAM.nas
@@ -293,8 +293,8 @@ var canvas_lowerECAM_base = {
} else if (ac1_src.getValue() == "XX" or ac2_src.getValue() == "XX") {
du4_test.setValue(0);
}
-
- if (ac2.getValue() >= 110 and lighting_du4.getValue() > 0) {
+
+ if (ac2.getValue() >= 110 and lighting_du4.getValue() > 0.01) {
if (du4_test_time.getValue() + du4_test_amount.getValue() >= elapsedtime) {
lowerECAM_apu.page.hide();
lowerECAM_bleed.page.hide();
diff --git a/Models/Instruments/PFD/PFD.nas b/Models/Instruments/PFD/PFD.nas
index 300cf3c1..b61ada7f 100644
--- a/Models/Instruments/PFD/PFD.nas
+++ b/Models/Instruments/PFD/PFD.nas
@@ -246,7 +246,7 @@ var canvas_PFD_base = {
if (acconfig_mismatch.getValue() == "0x000") {
PFD_1_mismatch.page.hide();
PFD_2_mismatch.page.hide();
- if (acess.getValue() >= 110 and du1_lgt.getValue() > 0) {
+ if (acess.getValue() >= 110 and du1_lgt.getValue() > 0.01) {
if (du1_test_time.getValue() + du1_test_amount.getValue() >= elapsedtime_act and cpt_du_xfr.getValue() != 1) {
PFD_1_test.update();
updateL = 0;
@@ -269,7 +269,7 @@ var canvas_PFD_base = {
PFD_1_test.page.hide();
PFD_1.page.hide();
}
- if (ac2.getValue() >= 110 and du6_lgt.getValue() > 0) {
+ if (ac2.getValue() >= 110 and du6_lgt.getValue() > 0.01) {
if (du6_test_time.getValue() + du6_test_amount.getValue() >= elapsedtime_act and fo_du_xfr.getValue() != 1) {
PFD_2_test.update();
updateR = 0;
diff --git a/Models/Instruments/Upper-ECAM/Upper-ECAM.nas b/Models/Instruments/Upper-ECAM/Upper-ECAM.nas
index bdb8c712..4415df83 100644
--- a/Models/Instruments/Upper-ECAM/Upper-ECAM.nas
+++ b/Models/Instruments/Upper-ECAM/Upper-ECAM.nas
@@ -138,7 +138,7 @@ var canvas_upperECAM_base = {
}
cur_eng_option = eng_option.getValue();
- if (acess.getValue() >= 110 and du3_lgt.getValue() > 0) {
+ if (acess.getValue() >= 110 and du3_lgt.getValue() > 0.01) {
if (du3_test_time.getValue() + du3_test_amount.getValue() >= elapsedtime) {
upperECAM_cfm_eis2.page.hide();
upperECAM_iae_eis2.page.hide();
diff --git a/Nasal/MCDU/MCDU.nas b/Nasal/MCDU/MCDU.nas
index 409d6173..3b73107d 100644
--- a/Nasal/MCDU/MCDU.nas
+++ b/Nasal/MCDU/MCDU.nas
@@ -5,7 +5,6 @@
##############################################
var MCDU_init = func(i) {
- setprop("/MCDU[" ~ i ~ "]/brightness", "1.0");
MCDU_reset(i); # Reset MCDU, clears data
}
diff --git a/Nasal/autopush.nas b/Nasal/autopush.nas
index 18dbb4f5..d024c7e2 100644
--- a/Nasal/autopush.nas
+++ b/Nasal/autopush.nas
@@ -42,6 +42,7 @@ var _loop = func() {
var time = getprop("/sim/time/elapsed-sec");
var prop = math.min(math.max(_K_p * deltaV, -_F_p), _F_p);
var speedup = getprop("/sim/speed-up");
+ var deriv = 0;
dt = time - _time;
# XXX Sanitising dt. Smaller chance of freakout on lag spike.
if(dt > 0.0) {
diff --git a/Nasal/autopush_route.nas b/Nasal/autopush_route.nas
index 606c9ff5..4e57284b 100644
--- a/Nasal/autopush_route.nas
+++ b/Nasal/autopush_route.nas
@@ -26,9 +26,13 @@ var _D_min = nil;
var _add = func(pos) {
if (_N) {
var (A, S) = courseAndDistance(_user_points.arr[_N - 1], pos);
- if (S * NM2M < 3 * _D_min) {
+ S *= NM2M;
+ if (S < 3 * _D_min) {
gui.popupTip("Too close to the previous point,\ntry again");
return;
+ }else if (S > 10000.0) {
+ gui.popupTip("Too far from the previous point,\ntry again");
+ return;
}
}
_user_points.add(geo.Coord.new(pos));
@@ -126,7 +130,7 @@ var _clear_waypoint_models = func() {
}
var _set_view = func() {
- if(!getprop("/sim/current-view/internal")){
+ if (!getprop("/sim/current-view/internal")){
_view_changed_or_external = 1;
return;
}
diff --git a/Nasal/buttons.nas b/Nasal/buttons.nas
index 525f2ffd..072407e2 100644
--- a/Nasal/buttons.nas
+++ b/Nasal/buttons.nas
@@ -48,6 +48,8 @@ var variousReset = func {
setprop("/controls/lighting/DU/du4", 1);
setprop("/controls/lighting/DU/du5", 1);
setprop("/controls/lighting/DU/du6", 1);
+ setprop("/controls/lighting/DU/mcdu1", 1);
+ setprop("/controls/lighting/DU/mcdu2", 1);
setprop("/modes/fcu/hdg-time", 0);
setprop("/controls/switching/ATTHDG", 0);
setprop("/controls/switching/AIRDATA", 0);
diff --git a/Systems/fbw-pitch.xml b/Systems/fbw-pitch.xml
index 3247bd11..c17033c7 100644
--- a/Systems/fbw-pitch.xml
+++ b/Systems/fbw-pitch.xml
@@ -6,7 +6,7 @@
##############################################
-->
-
+
@@ -15,17 +15,19 @@
FBW PITCH G PI
false
-
- /fdm/jsbsim/fbw/pitch/g-error
-
-
- 0
-
-
- /fdm/jsbsim/fbw/pitch/g-pi
-
+ /fdm/jsbsim/fbw/pitch/g-error
+ 0
+ /fdm/jsbsim/fbw/pitch/g-pi
- -1.5
+
+
+
+ /fdm/jsbsim/velocities/vc-kts
+ 140 -1.5
+ 350 -0.6
+
+
+
@@ -45,7 +47,13 @@
- -1.5
+
+
+ /fdm/jsbsim/velocities/vc-kts
+ 140 -1.5
+ 350 -0.6
+
+
0.0
diff --git a/Systems/instrumentation.xml b/Systems/instrumentation.xml
index 7f415277..1c9651d8 100644
--- a/Systems/instrumentation.xml
+++ b/Systems/instrumentation.xml
@@ -6,28 +6,7 @@
##############################################
-->
-
+
@@ -194,8 +173,8 @@ file, these values will be used (they are hardcoded).
- mk-viii
- 0
+ mk-viii
+ 0
diff --git a/revision.txt b/revision.txt
index 4a57c83e..f392d694 100644
--- a/revision.txt
+++ b/revision.txt
@@ -1 +1 @@
-4690
\ No newline at end of file
+4692
\ No newline at end of file