A3XX: Fix FMGC Nasal error, #111

This commit is contained in:
Joshua Davidson 2017-12-20 15:25:00 -05:00
parent 7c3f34407a
commit 3fec10bca0
2 changed files with 37 additions and 37 deletions

View file

@ -555,6 +555,7 @@ var ap_various = func {
}
if (getprop("/autopilot/route-manager/route/num") > 0 and getprop("/autopilot/route-manager/active") == 1) {
if ((getprop("/autopilot/route-manager/current-wp") + 1) < getprop("/autopilot/route-manager/route/num")) {
gnds_mps = getprop("/velocities/groundspeed-kt") * 0.5144444444444;
wp_fly_from = getprop("/autopilot/route-manager/current-wp");
if (wp_fly_from < 0) {
@ -591,7 +592,6 @@ var ap_various = func {
}
if (getprop("/autopilot/route-manager/wp/dist") <= turn_dist) {
if ((getprop("/autopilot/route-manager/current-wp") + 1) < getprop("/autopilot/route-manager/route/num")) {
setprop("/autopilot/route-manager/current-wp", getprop("/autopilot/route-manager/current-wp") + 1);
}
}

View file

@ -1 +1 @@
4100
4101