From: James Turner Date: Mon, 17 Jun 2013 17:11:47 +0000 (+0100) Subject: Fix issues with explicit GPS instruments. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5ac8bc01a11b96ca54e9de58f32525c2e041939e;p=flightgear.git Fix issues with explicit GPS instruments. For 2.12, ensure all GPS instruments are backwards compatible, however they were requested. Post release we can create a new instrument name with the compatibility code disabled. --- diff --git a/src/Instrumentation/instrument_mgr.cxx b/src/Instrumentation/instrument_mgr.cxx index ec8aa69ec..80724e3a6 100644 --- a/src/Instrumentation/instrument_mgr.cxx +++ b/src/Instrumentation/instrument_mgr.cxx @@ -142,7 +142,11 @@ bool FGInstrumentMgr::build (SGPropertyNode* config_props) set_subsystem( id, new Altimeter( node, "encoder" ), 0.15 ); } else if ( name == "gps" ) { - set_subsystem( id, new GPS( node ) ); + // post 2.12.0, add a new name (distinct from 'gps'), so + // it is possible to create non-default GPS instruments. + // then authors of realistic GPS and FMSs can transition to using + // that name as they choose. + set_subsystem( id, new GPS( node, true /* default GPS mode */ ) ); _explicitGps = true; } else if ( name == "gsdi" ) { set_subsystem( id, new GSDI( node ) );