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:
parent
26a8ffb44e
commit
5ac8bc01a1
1 changed files with 5 additions and 1 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Add table
Reference in a new issue