Add yasim c.g. display to weight-and-fuel dialog.
This commit is contained in:
parent
b568229f4a
commit
962368eb2f
1 changed files with 3 additions and 2 deletions
|
@ -831,8 +831,9 @@ var showWeightDialog = func {
|
||||||
var fdmdata = {
|
var fdmdata = {
|
||||||
grosswgt : "/yasim/gross-weight-lbs",
|
grosswgt : "/yasim/gross-weight-lbs",
|
||||||
payload : "/sim",
|
payload : "/sim",
|
||||||
cg : nil,
|
cg : "/fdm/yasim/cg-x-m",
|
||||||
};
|
};
|
||||||
|
setprop("/limits/mass-and-balance/cg/dimension","m");
|
||||||
} elsif(fdm == "jsb") {
|
} elsif(fdm == "jsb") {
|
||||||
var fdmdata = {
|
var fdmdata = {
|
||||||
grosswgt : "/fdm/jsbsim/inertia/weight-lbs",
|
grosswgt : "/fdm/jsbsim/inertia/weight-lbs",
|
||||||
|
@ -892,7 +893,7 @@ var showWeightDialog = func {
|
||||||
|
|
||||||
if( fdmdata.cg != nil ) {
|
if( fdmdata.cg != nil ) {
|
||||||
var n = props.globals.getNode("/limits/mass-and-balance/cg/dimension");
|
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");
|
dialog[name].addChild("hrule");
|
||||||
|
|
Loading…
Add table
Reference in a new issue