1
0
Fork 0

Add yasim c.g. display to weight-and-fuel dialog.

This commit is contained in:
Henning Stahlke 2017-01-23 17:57:18 +01:00
parent b568229f4a
commit 962368eb2f

View file

@ -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");