Feature request for Syd - expose the ND view heading
This commit is contained in:
parent
73d2d3425f
commit
1011251504
2 changed files with 4 additions and 1 deletions
|
@ -540,6 +540,7 @@ NavDisplay::init ()
|
|||
_testModeNode = _Instrument->getChild("test-mode", 0, true);
|
||||
_testModeNode->setBoolValue(false);
|
||||
|
||||
_viewHeadingNode = _Instrument->getChild("view-heading-deg", 0, true);
|
||||
// OSG geometry setup
|
||||
_radarGeode = new osg::Geode;
|
||||
|
||||
|
@ -647,6 +648,7 @@ NavDisplay::update (double delta_time_sec)
|
|||
} else {
|
||||
_view_heading = _Instrument->getFloatValue("heading-up-deg", 0.0);
|
||||
}
|
||||
_viewHeadingNode->setDoubleValue(_view_heading);
|
||||
|
||||
double xCenterFrac = _xCenterNode->getDoubleValue();
|
||||
double yCenterFrac = _yCenterNode->getDoubleValue();
|
||||
|
|
|
@ -146,7 +146,8 @@ private:
|
|||
SGPropertyNode_ptr _navRadio1Node;
|
||||
SGPropertyNode_ptr _navRadio2Node;
|
||||
SGPropertyNode_ptr _xCenterNode, _yCenterNode;
|
||||
|
||||
SGPropertyNode_ptr _viewHeadingNode;
|
||||
|
||||
osg::ref_ptr<osg::Texture2D> _symbolTexture;
|
||||
osg::ref_ptr<osg::Geode> _radarGeode;
|
||||
osg::ref_ptr<osg::Geode> _textGeode;
|
||||
|
|
Loading…
Add table
Reference in a new issue