- //set_subsystem("asi", new AirspeedIndicator(0));
- //set_subsystem("asi-backup", new AirspeedIndicator(1, 1, 1));
- set_subsystem("annunciator", new Annunciator);
- //set_subsystem("ai", new AttitudeIndicator);
- //set_subsystem("alt", new Altimeter);
- //set_subsystem("ti", new TurnIndicator);
- //set_subsystem("ball", new SlipSkidBall);
- //set_subsystem("hi", new HeadingIndicator);
- //set_subsystem("vsi", new VerticalSpeedIndicator);
- //set_subsystem("compass", new MagCompass);
- //set_subsystem("dme", new DME, 1.0);
- //set_subsystem("adf", new ADF, 0.15);
- //set_subsystem("gps", new GPS, 0.45);
- //set_subsystem("clock", new Clock, 0.25);
- //set_subsystem("nhi", new NewHeadingIndicator);
-
- config_props = new SGPropertyNode;
-
- SGPropertyNode *path_n = fgGetNode("/sim/instrumentation/path");
-
- if (path_n) {
- SGPath config( globals->get_fg_root() );
- config.append( path_n->getStringValue() );
-
- SG_LOG( SG_ALL, SG_INFO, "Reading instruments from "
- << config.str() );
- try {
- readProperties( config.str(), config_props );
-
- if ( build() ) {
- enabled = true;
- } else {
- SG_LOG( SG_ALL, SG_ALERT,
- "Detected an internal inconsistancy in the instrumentation");
- SG_LOG( SG_ALL, SG_ALERT,
- " system specification file. See earlier errors for" );
- SG_LOG( SG_ALL, SG_ALERT,
- " details.");
- exit(-1);
- }
- } catch (const sg_exception& exc) {
- SG_LOG( SG_ALL, SG_ALERT, "Failed to load instrumentation system model: "
- << config.str() );
- }
-
- } else {
- SG_LOG( SG_ALL, SG_WARN,
- "No instrumentation model specified for this model!");
- }
-
- delete config_props;