Remove hardcoded update intervals for radar.
This commit is contained in:
parent
b44b8005b8
commit
e4fed256b7
2 changed files with 6 additions and 5 deletions
|
@ -200,7 +200,7 @@ bool FGInstrumentMgr::build (SGPropertyNode* config_props)
|
|||
set_subsystem( id, new VerticalSpeedIndicator( node ) );
|
||||
|
||||
} else if ( name == "radar" ) {
|
||||
set_subsystem( id, new wxRadarBg ( node ), 1);
|
||||
set_subsystem( id, new wxRadarBg ( node ) );
|
||||
|
||||
} else if ( name == "inst-vertical-speed-indicator" ) {
|
||||
set_subsystem( id, new InstVerticalSpeedIndicator( node ) );
|
||||
|
@ -215,13 +215,13 @@ bool FGInstrumentMgr::build (SGPropertyNode* config_props)
|
|||
set_subsystem( id, new MasterReferenceGyro( node ) );
|
||||
|
||||
} else if ( name == "groundradar" ) {
|
||||
set_subsystem( id, new GroundRadar( node ), 1 );
|
||||
set_subsystem( id, new GroundRadar( node ) );
|
||||
|
||||
} else if ( name == "air-ground-radar" ) {
|
||||
set_subsystem( id, new agRadar( node ),1);
|
||||
set_subsystem( id, new agRadar( node ) );
|
||||
|
||||
} else if ( name == "radar-altimeter" ) {
|
||||
set_subsystem( id, new radAlt( node ),1);
|
||||
set_subsystem( id, new radAlt( node ) );
|
||||
|
||||
} else if ( name == "tcas" ) {
|
||||
set_subsystem( id, new TCAS( node ), 0.2);
|
||||
|
|
|
@ -247,6 +247,7 @@ wxRadarBg::init ()
|
|||
camera->addChild(_textGeode.get());
|
||||
|
||||
updateFont();
|
||||
_time = 0.0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -299,7 +300,7 @@ wxRadarBg::update (double delta_time_sec)
|
|||
if (_time < _interval)
|
||||
return;
|
||||
|
||||
_time = 0.0;
|
||||
_time -= _interval;
|
||||
|
||||
string mode = _Instrument->getStringValue("display-mode", "arc");
|
||||
if (mode == "map") {
|
||||
|
|
Loading…
Add table
Reference in a new issue