1
0
Fork 0

YASim: export wing section MACs

This commit is contained in:
Henning Stahlke 2018-02-11 00:39:12 +01:00
parent 1b21f85c52
commit 59c059ddb6

View file

@ -547,6 +547,11 @@ void Wing::writeInfoToProptree()
sectN->getNode("base-z", true)->setFloatValue(ws->_rootChord.z); sectN->getNode("base-z", true)->setFloatValue(ws->_rootChord.z);
sectN->getNode("chord", true)->setFloatValue(ws->_rootChord.length); sectN->getNode("chord", true)->setFloatValue(ws->_rootChord.length);
sectN->getNode("incidence-deg", true)->setFloatValue(ws->_sectionIncidence * RAD2DEG); sectN->getNode("incidence-deg", true)->setFloatValue(ws->_sectionIncidence * RAD2DEG);
sectN->getNode("mac", true)->setFloatValue(ws->_mac.length);
sectN->getNode("mac-x", true)->setFloatValue(ws->_mac.x);
sectN->getNode("mac-y", true)->setFloatValue(ws->_mac.y);
sectN->getNode("mac-z", true)->setFloatValue(ws->_mac.z);
} }
_wingN->getNode("weight", true)->setFloatValue(wgt); _wingN->getNode("weight", true)->setFloatValue(wgt);
_wingN->getNode("drag", true)->setFloatValue(dragSum); _wingN->getNode("drag", true)->setFloatValue(dragSum);