From 559800e05d0c9bef8f250d69a75c7a823e656ec9 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Wed, 16 Jun 2021 14:59:37 +0100 Subject: [PATCH] Move to ITAF loop --- Nasal/FMGC/FMGC-b.nas | 4 ++++ Nasal/FMGC/FMGC.nas | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Nasal/FMGC/FMGC-b.nas b/Nasal/FMGC/FMGC-b.nas index be727e2c..1669b469 100644 --- a/Nasal/FMGC/FMGC-b.nas +++ b/Nasal/FMGC/FMGC-b.nas @@ -254,6 +254,10 @@ var ITAF = { Internal.vsTemp = Internal.vs.getValue(); Position.indicatedAltitudeFtTemp = Position.indicatedAltitudeFt.getValue(); + # Update VLS / VMAX for autothrust + FMGCNodes.vmax.setValue(FMGCInternal.maxspeed); + FMGCNodes.vlsMin.setValue(FMGCInternal.vls_min); + # LNAV Engagement if (Output.lnavArm.getBoolValue()) { me.checkLNAV(1); diff --git a/Nasal/FMGC/FMGC.nas b/Nasal/FMGC/FMGC.nas index ba7eca87..e986acaa 100644 --- a/Nasal/FMGC/FMGC.nas +++ b/Nasal/FMGC/FMGC.nas @@ -700,15 +700,12 @@ var masterFMGC = maketimer(0.2, func { } else { FMGCInternal.maxspeed = fmgc.FMGCInternal.vmo_mmo; } - FMGCNodes.vmax.setValue(FMGCInternal.maxspeed); if (newphase != FMGCInternal.phase) { # phase changed FMGCInternal.phase = newphase; FMGCNodes.phase.setValue(newphase); } - - ############################ # fuel ############################ @@ -940,7 +937,6 @@ var masterFMGC = maketimer(0.2, func { FMGCInternal.vls_min = FMGCInternal.vs1g_conf_full * 1.23; } } - FMGCNodes.vlsMin.setValue(FMGCInternal.vls_min); if (gear0 and flap < 5 and (state1 == "MCT" or state1 == "MAN THR" or state1 == "TOGA") and (state2 == "MCT" or state2 == "MAN THR" or state2 == "TOGA")) { if (!FMGCInternal.takeoffState) {