]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/instrument_mgr.cxx
Added copyright to ground radar files
[flightgear.git] / src / Instrumentation / instrument_mgr.cxx
index 777110bcef053dd458d7c4b83a1a3ef266dd7659..638bd47a165f5888c6d60e47e4c2e95dc8bb4ffa 100644 (file)
@@ -27,7 +27,6 @@
 #include "attitude_indicator.hxx"
 #include "clock.hxx"
 #include "dme.hxx"
-#include "encoder.hxx"
 #include "gps.hxx"
 #include "gsdi.hxx"
 #include "heading_indicator.hxx"
 #include "tacan.hxx"
 #include "mk_viii.hxx"
 #include "mrg.hxx"
-
+#include "groundradar.hxx"
 
 FGInstrumentMgr::FGInstrumentMgr ()
 {
-    set_subsystem("od_gauge", new FGODGauge, 1.0);
+    set_subsystem("od_gauge", new FGODGauge);
     set_subsystem("hud", new HUD);
 
     config_props = new SGPropertyNode;
@@ -121,7 +120,7 @@ bool FGInstrumentMgr::build ()
                            new DME( node ), 1.0 );
         } else if ( name == "encoder" ) {
             set_subsystem( "instrument" + temp.str(), 
-                           new Encoder( node ) );
+                           new Altimeter( node ) );
         } else if ( name == "gps" ) {
             set_subsystem( "instrument" + temp.str(), 
                            new GPS( node ), 0.45 );
@@ -164,7 +163,7 @@ bool FGInstrumentMgr::build ()
         } else if ( name == "vertical-speed-indicator" ) {
             set_subsystem( "instrument" + temp.str(), 
                            new VerticalSpeedIndicator( node ) );
-        } else if ( name == "wxradar" ) {
+        } else if ( name == "radar" ) {
             set_subsystem( "instrument" + temp.str(), 
                            new wxRadarBg ( node ), 0.5 );
         } else if ( name == "inst-vertical-speed-indicator" ) { // (TJ)
@@ -179,6 +178,9 @@ bool FGInstrumentMgr::build ()
         } else if ( name == "master-reference-gyro" ) { 
             set_subsystem( "instrument" + temp.str(), 
                            new MasterReferenceGyro( node ) );
+        } else if ( name == "groundradar" ) { 
+            set_subsystem( "instrument" + temp.str(), 
+                           new GroundRadar( node ), 1 );
 
         } else {
             SG_LOG( SG_ALL, SG_ALERT, "Unknown top level section: "