1
0
Fork 0

YASim: rename some exported props.

This commit is contained in:
Henning Stahlke 2017-04-18 22:11:34 +02:00
parent 73de375249
commit 1302c167dd
2 changed files with 3 additions and 3 deletions

View file

@ -599,8 +599,8 @@ void Airplane::compile()
_cgDesiredAft = _wing->getMACx() - _wing->getMAC()*_cgDesiredMax; _cgDesiredAft = _wing->getMACx() - _wing->getMAC()*_cgDesiredMax;
if (baseN != 0) { if (baseN != 0) {
SGPropertyNode_ptr n = fgGetNode("/fdm/yasim/model", true); SGPropertyNode_ptr n = fgGetNode("/fdm/yasim/model", true);
n->getNode("cg-range-front", true)->setFloatValue(_cgDesiredFront); n->getNode("cg-x-range-front", true)->setFloatValue(_cgDesiredFront);
n->getNode("cg-range-aft", true)->setFloatValue(_cgDesiredAft); n->getNode("cg-x-range-aft", true)->setFloatValue(_cgDesiredAft);
} }
} }
if (_tail) if (_tail)

View file

@ -36,7 +36,7 @@ Surface::Surface( Version * version ) :
_inducedDrag = 1; _inducedDrag = 1;
_stallAlpha = 0; _stallAlpha = 0;
_alpha = 0; _alpha = 0;
_surfN = fgGetNode("/fdm/yasim/surfaces", true); _surfN = fgGetNode("/fdm/yasim/debug/surfaces", true);
if (_surfN != 0) { if (_surfN != 0) {
_surfN = _surfN->getChild("surface", _id, true); _surfN = _surfN->getChild("surface", _id, true);
_fxN = _surfN->getNode("f-x", true); _fxN = _surfN->getNode("f-x", true);