diff --git a/Nasal/gui.nas b/Nasal/gui.nas index 51f724166..318114bef 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -831,8 +831,9 @@ var showWeightDialog = func { var fdmdata = { grosswgt : "/yasim/gross-weight-lbs", payload : "/sim", - cg : nil, + cg : "/fdm/yasim/cg-x-m", }; + setprop("/limits/mass-and-balance/cg/dimension","m"); } elsif(fdm == "jsb") { var fdmdata = { grosswgt : "/fdm/jsbsim/inertia/weight-lbs", @@ -892,7 +893,7 @@ var showWeightDialog = func { if( fdmdata.cg != nil ) { var n = props.globals.getNode("/limits/mass-and-balance/cg/dimension"); - tablerow("Center of Gravity", props.globals.getNode(fdmdata.cg), "%.1f " ~ (n == nil ? "in" : n.getValue())); + tablerow("Center of Gravity", props.globals.getNode(fdmdata.cg), "%.2f " ~ (n == nil ? "in" : n.getValue())); } dialog[name].addChild("hrule");