X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2FNavDisplay.cxx;h=015f8ff595d0f173fdef4ee6eae1876c8b6ee882;hb=0f462d4a6e8ac37126dc91b52999e6bf47f5f17d;hp=c45a705efe5eadf624b0fc851895b6c783bd9885;hpb=96ee2b1577d16564cd43ac0ddf50ac784f807d29;p=flightgear.git diff --git a/src/Instrumentation/NavDisplay.cxx b/src/Instrumentation/NavDisplay.cxx index c45a705ef..015f8ff59 100644 --- a/src/Instrumentation/NavDisplay.cxx +++ b/src/Instrumentation/NavDisplay.cxx @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -197,6 +198,7 @@ public: } type = node->getStringValue("type"); + boost::to_lower(type); SGPropertyNode* enableNode = node->getChild("enable"); if (enableNode) { enable.reset(sgReadCondition(fgGetNode("/"), enableNode)); @@ -540,6 +542,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 +650,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(); @@ -1101,6 +1105,7 @@ void NavDisplay::foundPositionedItem(FGPositioned* pos) } string type = FGPositioned::nameForType(pos->type()); + //boost::to_lower(type); if (!anyRuleForType(type)) { return; // not diplayed at all, we're done }