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 = {
|
||||
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");
|
||||
|
|
Loading…
Add table
Reference in a new issue