From ec31e4484311ac1ac6d8486424315336155b0dd0 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 14 Apr 2017 18:02:06 -0400 Subject: [PATCH] ITAF Update --- Nasal/PFD_FMA.nas | 2 +- Nasal/it-autoflight.nas | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Nasal/PFD_FMA.nas b/Nasal/PFD_FMA.nas index c1c97068..ef914bc3 100644 --- a/Nasal/PFD_FMA.nas +++ b/Nasal/PFD_FMA.nas @@ -64,7 +64,7 @@ setlistener("/it-autoflight/mode/vert", func { setprop("/modes/pfd/fma/pitch-mode", "OP DES"); } else if (vert == "FPA") { setprop("/modes/pfd/fma/pitch-mode", "FPA"); - } else if (vert == "LAND 3") { + } else if (vert == "LAND") { setprop("/modes/pfd/fma/pitch-mode", "LAND"); } else if (vert == "FLARE") { setprop("/modes/pfd/fma/pitch-mode", "FLARE"); diff --git a/Nasal/it-autoflight.nas b/Nasal/it-autoflight.nas index 8602f69e..fdb47232 100644 --- a/Nasal/it-autoflight.nas +++ b/Nasal/it-autoflight.nas @@ -1,6 +1,6 @@ # IT AUTOFLIGHT System Controller # Joshua Davidson (it0uchpods) -# V3.0.0 Build 169 +# V3.0.0 Build 171 # This program is 100% GPL! print("IT-AUTOFLIGHT: Please Wait!"); @@ -58,7 +58,7 @@ var ap_init = func { setprop("/it-autoflight/mode/lat", "T/O"); setprop("/it-autoflight/mode/vert", "T/O CLB"); setprop("/it-autoflight/mode/prof", "NONE"); - setprop("/it-autoflight/input/spd-kts", 200); + setprop("/it-autoflight/input/spd-kts", 250); setprop("/it-autoflight/input/spd-mach", 0.68); update_armst.start(); thrustmode(); @@ -294,7 +294,7 @@ var vertical = func { setprop("/it-autoflight/output/loc-armed", 1); } if ((getprop("/it-autoflight/output/vert") == 2) or (getprop("/it-autoflight/output/vert") == 6)) { - # Do nothing because G/S or LAND 3 or FLARE is active + # Do nothing because G/S or LAND or FLARE is active } else { setprop("/instrumentation/nav[0]/gs-rate-of-climb", 0); setprop("/instrumentation/nav[1]/gs-rate-of-climb", 0); @@ -359,7 +359,7 @@ var vertical = func { thrustmode(); } else if (vertset == 6) { setprop("/it-autoflight/output/vert", 6); - setprop("/it-autoflight/mode/vert", "LAND 3"); + setprop("/it-autoflight/mode/vert", "LAND"); setprop("/it-autoflight/mode/arm", " "); thrustmode(); alandt.stop(); @@ -749,6 +749,7 @@ var apparmcheck = func { } var make_appr_active = func { + prof_sys_stop(); setprop("/it-autoflight/output/appr-armed", 0); setprop("/it-autoflight/output/vert", 2); setprop("/it-autoflight/mode/vert", "G/S");