From a0fbcccff0cf1ae54bc68fada299badc52aee7dc Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Wed, 1 Jan 2020 22:15:58 +0000 Subject: [PATCH] Fix --- Nasal/FMGC/FMGC.nas | 2 +- Nasal/Sim/property-tree-setup.nas | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Nasal/FMGC/FMGC.nas b/Nasal/FMGC/FMGC.nas index f3694d0e..92262827 100644 --- a/Nasal/FMGC/FMGC.nas +++ b/Nasal/FMGC/FMGC.nas @@ -266,7 +266,7 @@ var masterFMGC = maketimer(0.2, func { if (getprop("/systems/navigation/adr/computation/overspeed-vfe-spd") != 1024) { setprop("/FMGC/internal/maxspeed", getprop("/systems/navigation/adr/computation/overspeed-vfe-spd") - 4); - } elsif (getprop("/systems/navigation/adr/computation/overspeed-vle")) { + } elsif (pts.Gear.position[0].getValue() != 0 or pts.Gear.position[1].getValue() != 0 or pts.Gear.position[2].getValue() != 0) { setprop("/FMGC/internal/maxspeed", 284); } else { setprop("/FMGC/internal/maxspeed", getprop("/it-fbw/speeds/vmo-mmo")); diff --git a/Nasal/Sim/property-tree-setup.nas b/Nasal/Sim/property-tree-setup.nas index 09569e68..741dd6cf 100644 --- a/Nasal/Sim/property-tree-setup.nas +++ b/Nasal/Sim/property-tree-setup.nas @@ -66,6 +66,7 @@ var FMGC = { var Gear = { compression: [props.globals.getNode("/gear/gear[0]/compression-norm"),props.globals.getNode("/gear/gear[1]/compression-norm"),props.globals.getNode("/gear/gear[2]/compression-norm")], wow: [props.globals.getNode("/gear/gear[0]/wow"),props.globals.getNode("/gear/gear[1]/wow"),props.globals.getNode("/gear/gear[2]/wow")], + position: [props.globals.getNode("/gear/gear[0]/position-norm"),props.globals.getNode("/gear/gear[1]/position-norm"),props.globals.getNode("/gear/gear[2]/position-norm")], }; var Instrumentation = {