1
0
Fork 0

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.
This commit is contained in:
James Turner 2013-06-17 18:11:47 +01:00
parent 26a8ffb44e
commit 5ac8bc01a1

View file

@ -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 ) );