X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Finstrument_mgr.cxx;h=da82cce9529b2e35eb1999b9975f8e0888861340;hb=43880b201cea2b120fefd99696ae0b43227358dc;hp=f1f7170de7dd404902790f658ea070e9f15cb463;hpb=a5696122f1b28e458f52a86432bca0cc76cfac1b;p=flightgear.git diff --git a/src/Instrumentation/instrument_mgr.cxx b/src/Instrumentation/instrument_mgr.cxx index f1f7170de..da82cce95 100644 --- a/src/Instrumentation/instrument_mgr.cxx +++ b/src/Instrumentation/instrument_mgr.cxx @@ -48,6 +48,8 @@ #include "mk_viii.hxx" #include "mrg.hxx" #include "groundradar.hxx" +#include "agradar.hxx" +#include "rad_alt.hxx" FGInstrumentMgr::FGInstrumentMgr () { @@ -72,7 +74,7 @@ FGInstrumentMgr::FGInstrumentMgr () "Detected an internal inconsistency in the instrumentation\n" "system specification file. See earlier errors for details.")); } - } catch (const sg_exception& exc) { + } catch (const sg_exception&) { SG_LOG( SG_ALL, SG_ALERT, "Failed to load instrumentation system model: " << config.str() ); } @@ -168,7 +170,7 @@ bool FGInstrumentMgr::build () set_subsystem( id, new VerticalSpeedIndicator( node ) ); } else if ( name == "radar" ) { - set_subsystem( id, new wxRadarBg ( node ), 0.5 ); + set_subsystem( id, new wxRadarBg ( node ), 1); } else if ( name == "inst-vertical-speed-indicator" ) { set_subsystem( id, new InstVerticalSpeedIndicator( node ) ); @@ -185,6 +187,12 @@ bool FGInstrumentMgr::build () } else if ( name == "groundradar" ) { set_subsystem( id, new GroundRadar( node ), 1 ); + } else if ( name == "air-ground-radar" ) { + set_subsystem( id, new agRadar( node ),1); + + } else if ( name == "radar-altimeter" ) { + set_subsystem( id, new radAlt( node ),1); + } else { SG_LOG( SG_ALL, SG_ALERT, "Unknown top level section: " << name );