From 8d7541212be4914c9f62abd95717230f596e6831 Mon Sep 17 00:00:00 2001 From: Matthew Maring <56924612+hayden2000@users.noreply.github.com> Date: Sat, 2 May 2020 13:05:43 -0400 Subject: [PATCH] Fix gross weight bug --- Models/Instruments/MCDU/MCDU.nas | 4 ++-- Nasal/MCDU/MCDU.nas | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Models/Instruments/MCDU/MCDU.nas b/Models/Instruments/MCDU/MCDU.nas index 15f016c3..8d02c41b 100644 --- a/Models/Instruments/MCDU/MCDU.nas +++ b/Models/Instruments/MCDU/MCDU.nas @@ -150,7 +150,7 @@ var pri_efob = props.globals.getNode("/FMGC/internal/pri-efob", 1); var alt_efob = props.globals.getNode("/FMGC/internal/alt-efob", 1); var fob = props.globals.getNode("/FMGC/internal/fob", 1); var fffq_sensor = props.globals.getNode("/FMGC/internal/fffq-sensor", 1); -var gw = props.globals.getNode("/FMGC/internal/gw", 1); +var gw = props.globals.getNode("/FMGC/internal/fuel-pred-gw", 1); var cg = props.globals.getNode("/FMGC/internal/cg", 1); # PROG @@ -1704,7 +1704,7 @@ var canvas_MCDU_base = { me["Simple_L6"].setText(sprintf("%2.1f", min_dest_fob.getValue())); setprop("/FMGC/internal/fob", num(getprop("/consumables/fuel/total-fuel-lbs") / 1000)); - setprop("/FMGC/internal/gw", num(getprop("/fdm/jsbsim/inertia/weight-lbs") / 1000)); + setprop("/FMGC/internal/fuel-pred-gw", num(getprop("/fdm/jsbsim/inertia/weight-lbs") / 1000)); setprop("/FMGC/internal/cg", num(getprop("/FMGC/internal/zfwcg"))); me["Simple_R4"].setText(sprintf("%4.1f/" ~ fffq_sensor.getValue(), fob.getValue())); me["Simple_R5"].setText(sprintf("%4.1f/", gw.getValue()) ~ sprintf("%4.1f", cg.getValue())); diff --git a/Nasal/MCDU/MCDU.nas b/Nasal/MCDU/MCDU.nas index bf2c7dd4..1df045a6 100644 --- a/Nasal/MCDU/MCDU.nas +++ b/Nasal/MCDU/MCDU.nas @@ -118,7 +118,7 @@ var MCDU_reset = func(i) { setprop("FMGC/internal/pri-efob", 0); setprop("FMGC/internal/alt-efob", 0); setprop("FMGC/internal/fob", 0); - setprop("FMGC/internal/gw", 0); + setprop("FMGC/internal/fuel-pred-gw", 0); setprop("FMGC/internal/cg", 0); # PROG