Control: Update FMGC altitude and heading control to V3.2

This commit is contained in:
Joshua Davidson 2018-07-24 19:00:21 -04:00
parent 4be083fcfb
commit e9a3dded3e
2 changed files with 5 additions and 5 deletions

View file

@ -751,8 +751,8 @@ var updateTimers = func {
# Altitude Capture
var altcapt = func {
vsnow = getprop("/it-autoflight/internal/vert-speed-fpm");
setprop("/it-autoflight/internal/captvs", math.round(vsnow / 5, 50));
setprop("/it-autoflight/internal/captvsneg", -1 * math.round(vsnow / 5, 50));
setprop("/it-autoflight/internal/captvs", math.round(vsnow / 5, 100));
setprop("/it-autoflight/internal/captvsneg", -1 * math.round(vsnow / 5, 100));
if ((getprop("/it-autoflight/output/fd1") == 1 or getprop("/it-autoflight/output/fd2") == 1 or getprop("/it-autoflight/output/ap1") == 1 or getprop("/it-autoflight/output/ap2") == 1) and getprop("/it-autoflight/output/vert") != 9) {
var calt = getprop("/instrumentation/altimeter/indicated-altitude-ft");
var alt = getprop("/it-autoflight/internal/alt");
@ -1171,8 +1171,8 @@ var mng_des_fpm = func {
# Managed Capture
var mng_altcapt = func {
vsnow = getprop("/it-autoflight/internal/vert-speed-fpm");
setprop("/it-autoflight/internal/captvs", math.round(vsnow / 5, 50));
setprop("/it-autoflight/internal/captvsneg", -1 * math.round(vsnow / 5, 50));
setprop("/it-autoflight/internal/captvs", math.round(vsnow / 5, 100));
setprop("/it-autoflight/internal/captvsneg", -1 * math.round(vsnow / 5, 100));
var MNGalt = getprop("/it-autoflight/internal/mng-alt");
var MCPalt = getprop("/it-autoflight/internal/alt");
var MNGdif = abs(MNGalt - MCPalt);

View file

@ -1 +1 @@
4606
4610