From 5ac8bc01a11b96ca54e9de58f32525c2e041939e Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 17 Jun 2013 18:11:47 +0100 Subject: [PATCH] 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. --- src/Instrumentation/instrument_mgr.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ) ); -- 2.39.5