]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/NavDisplay.cxx
Fix rpmlint/Linux packager complaints
[flightgear.git] / src / Instrumentation / NavDisplay.cxx
index c45a705efe5eadf624b0fc851895b6c783bd9885..015f8ff595d0f173fdef4ee6eae1876c8b6ee882 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <cassert>
 #include <boost/foreach.hpp>
+#include <boost/algorithm/string/case_conv.hpp>
 #include <algorithm>
 
 #include <osg/Array>
@@ -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
     }