2002-09-24 14:51:37 +00:00
|
|
|
// instrument_mgr.cxx - manage aircraft instruments.
|
|
|
|
// Written by David Megginson, started 2002.
|
|
|
|
//
|
|
|
|
// This file is in the Public Domain and comes with no warranty.
|
|
|
|
|
|
|
|
|
|
|
|
#include "instrument_mgr.hxx"
|
2002-09-28 20:48:53 +00:00
|
|
|
#include "airspeed_indicator.hxx"
|
2003-05-27 19:13:51 +00:00
|
|
|
#include "annunciator.hxx"
|
2002-09-24 14:51:37 +00:00
|
|
|
#include "attitude_indicator.hxx"
|
2003-01-25 19:49:27 +00:00
|
|
|
#include "altimeter.hxx"
|
|
|
|
#include "turn_indicator.hxx"
|
2003-01-25 21:13:13 +00:00
|
|
|
#include "slip_skid_ball.hxx"
|
2002-09-27 22:03:48 +00:00
|
|
|
#include "heading_indicator.hxx"
|
|
|
|
#include "vertical_speed_indicator.hxx"
|
2003-01-26 15:56:11 +00:00
|
|
|
#include "mag_compass.hxx"
|
2003-03-10 14:09:43 +00:00
|
|
|
|
2003-03-09 03:20:34 +00:00
|
|
|
#include "dme.hxx"
|
2003-03-10 14:09:43 +00:00
|
|
|
#include "gps.hxx"
|
2003-06-27 08:46:57 +00:00
|
|
|
#include "clock.hxx"
|
2002-09-24 14:51:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
FGInstrumentMgr::FGInstrumentMgr ()
|
|
|
|
{
|
2003-01-25 19:49:27 +00:00
|
|
|
set_subsystem("asi", new AirspeedIndicator);
|
2003-05-27 19:13:51 +00:00
|
|
|
set_subsystem("annunciator", new Annunciator);
|
2003-01-25 19:49:27 +00:00
|
|
|
set_subsystem("ai", new AttitudeIndicator);
|
|
|
|
set_subsystem("alt", new Altimeter);
|
|
|
|
set_subsystem("ti", new TurnIndicator);
|
2003-01-25 21:13:13 +00:00
|
|
|
set_subsystem("ball", new SlipSkidBall);
|
2003-01-25 19:49:27 +00:00
|
|
|
set_subsystem("hi", new HeadingIndicator);
|
|
|
|
set_subsystem("vsi", new VerticalSpeedIndicator);
|
2003-01-26 15:56:11 +00:00
|
|
|
set_subsystem("compass", new MagCompass);
|
2003-03-09 03:20:34 +00:00
|
|
|
set_subsystem("dme", new DME, 1.0);
|
2003-03-10 14:09:43 +00:00
|
|
|
set_subsystem("gps", new GPS, 0.45);
|
2003-06-27 08:46:57 +00:00
|
|
|
set_subsystem("clock", new Clock, 0.25);
|
2002-09-24 14:51:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
FGInstrumentMgr::~FGInstrumentMgr ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// end of instrument_manager.cxx
|