From: James Turner Date: Mon, 23 Apr 2012 12:59:01 +0000 (+0100) Subject: Feature request for Syd - expose the ND view heading X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1011251504a4cb060e783b79bfccd4db6a390dc5;p=flightgear.git Feature request for Syd - expose the ND view heading --- diff --git a/src/Instrumentation/NavDisplay.cxx b/src/Instrumentation/NavDisplay.cxx index c45a705ef..5c6720ae1 100644 --- a/src/Instrumentation/NavDisplay.cxx +++ b/src/Instrumentation/NavDisplay.cxx @@ -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(); diff --git a/src/Instrumentation/NavDisplay.hxx b/src/Instrumentation/NavDisplay.hxx index 3e7adc7fa..daa4ae34d 100644 --- a/src/Instrumentation/NavDisplay.hxx +++ b/src/Instrumentation/NavDisplay.hxx @@ -146,7 +146,8 @@ private: SGPropertyNode_ptr _navRadio1Node; SGPropertyNode_ptr _navRadio2Node; SGPropertyNode_ptr _xCenterNode, _yCenterNode; - + SGPropertyNode_ptr _viewHeadingNode; + osg::ref_ptr _symbolTexture; osg::ref_ptr _radarGeode; osg::ref_ptr _textGeode;