1
0
Fork 0

SGSubsystem classes: Registration of all subsystems.

This commit is contained in:
Edward d'Auvergne 2018-05-07 08:46:44 +02:00
parent d259c70560
commit 34a6cb3c74
109 changed files with 645 additions and 2 deletions

View file

@ -68,13 +68,28 @@ SGSubsystem and define at least a small set of functions:
static const char* staticSubsystemClassId() { return "subsystem-example"; }
};
To register the subsystem with the subsystem manager, for non-instanced
subsystems add:
// Register the subsystem.
SGSubsystemMgr::Registrant<FGSubsystemExample> registrantFGSubsystemExample
Or to define a specific subsystem manager group, e.g. DISPLAY, and add any
dependencies:
// Register the subsystem.
SGSubsystemMgr::Registrant<FGSubsystemExample> registrantFGSubsystemExample(
SGSubsystemMgr::DISPLAY,
{{"viewer", SGSubsystemMgr::Dependency::HARD},
{"FGRenderer", SGSubsystemMgr::Dependency::NONSUBSYSTEM_HARD}});
The init() functions should make sure everything is set and ready so the
update() function can be run by the main loop. The reinit() function handles
everything in case of a reset by the user.
The bind() and unbind() functions can be used to tie and untie properties.
After that you can register this class at the subsystem manager:
Finally to create and have the subsystem managed:
globals->add_subsystem("example", new FGSubsystemExample);

View file

@ -718,4 +718,9 @@ FGAIAircraft* FGAIManager::getUserAircraft() const
return _userAircraft.get();
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGAIManager> registrantFGAIManager(
SGSubsystemMgr::POST_FDM,
{{"nasal", SGSubsystemMgr::Dependency::HARD}});
//end AIManager.cxx

View file

@ -171,3 +171,6 @@ const string& PerformanceDB::findAlias(const string& acType) const
}
// Register the subsystem.
SGSubsystemMgr::Registrant<PerformanceDB> registrantPerformanceDB(
SGSubsystemMgr::POST_FDM);

View file

@ -816,3 +816,8 @@ void FGSubmodelMgr::setParentNode(int id)
SG_LOG(SG_AI, SG_ALERT, "AISubmodel: parent node not found ");
}
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGSubmodelMgr> registrantFGSubmodelMgr(
SGSubsystemMgr::POST_FDM);

View file

@ -294,3 +294,9 @@ void FGATCManager::update ( double time ) {
(*atc)->update(time);
}
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGATCManager> registrantFGATCManager(
SGSubsystemMgr::POST_FDM,
{{"FGAIManager", SGSubsystemMgr::Dependency::HARD}});

View file

@ -225,3 +225,6 @@ size_t FGFlightHistory::currentMemoryUseBytes() const
return sizeof(SampleBucket) * m_buckets.size();
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGFlightHistory> registrantFGFlightHistory;

View file

@ -1881,3 +1881,6 @@ FGControls::set_autopilot_engage( int ap, bool val )
}
}
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGControls> registrantFGControls;

View file

@ -1145,3 +1145,7 @@ FGReplay::loadTape(const SGPropertyNode* ConfigData)
return loadTape(tapeDirectory, Preview, UserData);
}
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGReplay> registrantFGReplay;

View file

@ -106,4 +106,7 @@ FGAirportDynamicsRef AirportDynamicsManager::find(const FGAirportRef& apt)
return find(apt->ident());
}
// Register the subsystem.
SGSubsystemMgr::Registrant<AirportDynamicsManager> registrantAirportDynamicsManager;
} // of namespace flightgear

View file

@ -70,6 +70,13 @@ private:
simgear::StateMachine_ptr inner;
};
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<StateMachineComponent> registrantStateMachineComponent;
#endif
class StateMachineFunctor : public FunctorBase<Component>
{
public:

View file

@ -841,3 +841,7 @@ void DigitalFilter::update( bool firstTime, double dt)
<< "\toutput:" << output << std::endl;
}
}
// Register the subsystem.
SGSubsystemMgr::Registrant<DigitalFilter> registrantDigitalFilter;

View file

@ -485,3 +485,5 @@ void FlipFlop::update( bool firstTime, double dt )
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FlipFlop> registrantFlipFlop;

View file

@ -71,3 +71,6 @@ void Logic::update( bool firstTime, double dt )
set_output( get_input() );
}
// Register the subsystem.
SGSubsystemMgr::Registrant<Logic> registrantLogic;

View file

@ -240,3 +240,7 @@ bool PIDController::configure( SGPropertyNode& cfg_node,
return AnalogComponent::configure(cfg_node, cfg_name, prop_root);
}
// Register the subsystem.
SGSubsystemMgr::Registrant<PIDController> registrantPIDController;

View file

@ -87,3 +87,7 @@ void PISimpleController::update( bool firstTime, double dt )
set_output_value( clamped_output );
if ( _debug ) std::cout << "output = " << clamped_output << std::endl;
}
// Register the subsystem.
SGSubsystemMgr::Registrant<PISimpleController> registrantPISimpleController;

View file

@ -77,3 +77,7 @@ void Predictor::update( bool firstTime, double dt )
_last_value = ivalue;
}
// Register the subsystem.
SGSubsystemMgr::Registrant<Predictor> registrantPredictor;

View file

@ -1317,3 +1317,8 @@ bool FGRouteMgr::commandDeleteUserWaypoint(const SGPropertyNode * arg, SGPropert
return FGPositioned::deleteUserWaypoint(ident);
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGRouteMgr> registrantFGRouteMgr(
SGSubsystemMgr::GENERAL,
{{"gui", SGSubsystemMgr::Dependency::HARD}});

View file

@ -144,3 +144,8 @@ void CanvasMgr::handleModelReinit(SGPropertyNode*)
element->reloadPlacements("object");
}
}
// Register the subsystem.
SGSubsystemMgr::Registrant<CanvasMgr> registrantCanvasMgr(
SGSubsystemMgr::DISPLAY);

View file

@ -761,3 +761,10 @@ GUIMgr::addWindowPlacement( SGPropertyNode* placement,
}
return placements;
}
// Register the subsystem.
SGSubsystemMgr::Registrant<GUIMgr> registrantGUIMgr(
SGSubsystemMgr::DISPLAY,
{{"viewer", SGSubsystemMgr::Dependency::HARD},
{"FGRenderer", SGSubsystemMgr::Dependency::NONSUBSYSTEM_HARD}});

View file

@ -1481,3 +1481,9 @@ void NavDisplay::processCustomSymbols()
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<NavDisplay> registrantNavDisplay(
SGSubsystemMgr::GENERAL,
{{"route-manager", SGSubsystemMgr::Dependency::HARD}});
#endif

View file

@ -323,3 +323,7 @@ agRadar::update_terrain()
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<agRadar> registrantagRadar;
#endif

View file

@ -118,4 +118,9 @@ bool CockpitDisplayManager::build (SGPropertyNode* config_props)
return true;
}
// Register the subsystem.
SGSubsystemMgr::Registrant<CockpitDisplayManager> registrantCockpitDisplayManager(
SGSubsystemMgr::DISPLAY);
} // of namespace flightgear

View file

@ -349,4 +349,10 @@ void GroundRadar::updateTexture()
getCamera()->setNodeMask(0xffffffff);
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<GroundRadar> registrantGroundRadar;
#endif
// end of GroundRadar.cxx

View file

@ -1117,3 +1117,8 @@ wxRadarBg::valueChanged(SGPropertyNode*)
_time = _interval;
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<wxRadarBg> registrantwxRadarBg;
#endif

View file

@ -351,4 +351,9 @@ LayerInterpolateController * LayerInterpolateController::createInstance( SGPrope
//////////////////////////////////////////////////////////////////////////////
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<LayerInterpolateControllerImplementation> registrantLayerInterpolateControllerImplementation;
#endif
} // namespace

View file

@ -428,4 +428,7 @@ FGEnvironmentMgr::set_cloud_layer_coverage_type (int index, int type )
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGEnvironmentMgr> registrantFGEnvironmentMgr;
// end of environment-mgr.cxx

View file

@ -105,3 +105,7 @@ void Ephemeris::update(double)
// Update the moonlight intensity.
_moonlight->setDoubleValue(_impl->get_moon()->getIlluminanceFactor());
}
// Register the subsystem.
SGSubsystemMgr::Registrant<Ephemeris> registrantEphemeris;

View file

@ -69,3 +69,7 @@ void FGMagVarManager::update(double dt)
_magDipNode->setDoubleValue(_magVar->get_magdip() * SG_RADIANS_TO_DEGREES);
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGMagVarManager> registrantFGMagVarManager;

View file

@ -292,3 +292,10 @@ void FGPrecipitationMgr::update(double dt)
// Update the drawing...
precipitation->update();
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGPrecipitationMgr> registrantFGPrecipitationMgr(
SGSubsystemMgr::GENERAL,
{{"FGScenery", SGSubsystemMgr::Dependency::HARD},
{"SGSky", SGSubsystemMgr::Dependency::NONSUBSYSTEM_HARD}});

View file

@ -398,6 +398,7 @@ void BasicRealWxController::checkNearbyMetar()
}
/* -------------------------------------------------------------------------------- */
class NoaaMetarRealWxController : public BasicRealWxController, MetarRequester
@ -497,6 +498,16 @@ void NoaaMetarRealWxController::requestMetar
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<NoaaMetarRealWxController> registrantNoaaMetarRealWxController(
SGSubsystemMgr::GENERAL,
{{"environment", SGSubsystemMgr::Dependency::SOFT},
{"FGHTTPClient", SGSubsystemMgr::Dependency::SOFT},
{"realwx", SGSubsystemMgr::Dependency::SOFT}});
#endif
/* -------------------------------------------------------------------------------- */
RealWxController * RealWxController::createInstance( SGPropertyNode_ptr rootNode )

View file

@ -210,3 +210,7 @@ void FGRidgeLift::update(double dt) {
strength = fgGetLowPass( strength, lift_mps * SG_METER_TO_FEET, dt );
_ridge_lift_fps_node->setDoubleValue( strength );
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGRidgeLift> registrantFGRidgeLift;

View file

@ -317,6 +317,12 @@ append(alt_50_array, alt_med);
#endif
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<AreaSampler> registrantAreaSampler;
#endif
/* --------------------- End of AreaSampler implementation ------------- */
/* --------------------- TerrainSamplerImplementation -------------------------- */

View file

@ -230,3 +230,9 @@ void FGExternalNet::update( double dt ) {
FGNetFDM2Props( &fdm );
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<FGExternalNet> registrantFGExternalNet;
#endif

View file

@ -582,3 +582,7 @@ void FGExternalPipe::update_property( double dt ) {
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<FGExternalPipe> registrantFGExternalPipe;
#endif

View file

@ -1629,3 +1629,9 @@ void FGJSBsim::update_external_forces(double t_off)
if (_mmag) _mmag->setDoubleValue(0.0);
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<FGJSBsim> registrantFGJSBsim;
#endif

View file

@ -948,3 +948,8 @@ void FGLaRCsim::set_Density(double rho) {
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<FGLaRCsim> registrantFGLaRCsim;
#endif

View file

@ -55,3 +55,9 @@ void FGNullFDM::update( double dt ) {
// That is just to trigger ground level computations
_updateGeodeticPosition(get_Latitude(), get_Longitude(), get_Altitude());
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<FGNullFDM> registrantFGNullFDM;
#endif

View file

@ -108,3 +108,9 @@ void FGACMS::update( double dt ) {
_set_Sea_level_radius( sl_radius * SG_METER_TO_FEET);
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<FGACMS> registrantFGACMS;
#endif

View file

@ -331,3 +331,9 @@ bool FGADA::copy_from_FGADA() {
return true;
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<FGADA> registrantFGADA;
#endif

View file

@ -706,3 +706,8 @@ FGAISim::load(std::string path)
return true;
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<FGAISim> registrantFGAISim;
#endif

View file

@ -199,3 +199,7 @@ bool FGBalloonSim::copy_from_BalloonSim() {
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<FGBalloonSim> registrantFGBalloonSim;
#endif

View file

@ -117,3 +117,9 @@ void FGMagicCarpet::update( double dt ) {
_set_Altitude( get_Altitude() + climb );
_set_Altitude_AGL( get_Altitude() - get_Runway_altitude() );
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<FGMagicCarpet> registrantFGMagicCarpet;
#endif

View file

@ -192,3 +192,7 @@ void FGUFO::update( double dt ) {
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<FGUFO> registrantFGUFO;
#endif

View file

@ -574,3 +574,9 @@ void YASim::reinit()
// get current FDM values from the property tree
copyToYASim(true);
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<YASim> registrantYASim;
#endif

View file

@ -384,3 +384,8 @@ void FDMShell::createImplementation()
"If you still need it, please rebuild FlightGear and enable its support."));
}
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FDMShell> registrantFDMShell(
SGSubsystemMgr::FDM);

View file

@ -459,4 +459,9 @@ NewGUI::setupFont (SGPropertyNode *node)
return;
}
// Register the subsystem.
SGSubsystemMgr::Registrant<NewGUI> registrantNewGUI(
SGSubsystemMgr::INIT);
// end of new_gui.cxx

View file

@ -919,6 +919,10 @@ void FGHIDEventInput::update(double dt)
FGEventInput::update(dt);
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGHIDEventInput> registrantFGHIDEventInput;
///////////////////////////////////////////////////////////////////////////////////////////////
void FGHIDEventInput::FGHIDEventInputPrivate::evaluateDevice(hid_device_info* deviceInfo)

View file

@ -409,3 +409,8 @@ void FGJoystickInput::update( double dt )
}
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGJoystickInput> registrantFGJoystickInput(
SGSubsystemMgr::GENERAL,
{{"nasal", SGSubsystemMgr::Dependency::HARD}});

View file

@ -250,3 +250,9 @@ void FGKeyboardInput::keyHandler(int key, int keymod, int mousex, int mousey)
if( keyboardInput)
keyboardInput->doKey(key, keymod, mousex, mousey);
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGKeyboardInput> registrantFGKeyboardInput(
SGSubsystemMgr::GENERAL,
{{"nasal", SGSubsystemMgr::Dependency::HARD}});

View file

@ -719,3 +719,7 @@ bool FGMouseInput::isActiveModePassThrough() const
return m.modes[mode].pass_through;
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGMouseInput> registrantFGMouseInput;

View file

@ -100,3 +100,7 @@ FGInput::~FGInput ()
{
// SGSubsystemGroup deletes all subsystem in it's destructor
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGInput> registrantFGInput;

View file

@ -649,6 +649,10 @@ void HUDText::draw()
}
// Register the subsystem.
SGSubsystemMgr::Registrant<HUD> registrantHUD;
void TextList::align(const char *s, int align, float *x, float *y,
float *l, float *r, float *b, float *t) const
{

View file

@ -1608,3 +1608,9 @@ char KLN89::DecChar(char c, bool gap, bool wrap) {
if(c == ' ') return('9');
return(c - 1);
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<KLN89> registrantKLN89;
#endif

View file

@ -270,4 +270,12 @@ ADF::set_bearing (double dt, double bearing_deg)
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<ADF> registrantADF(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}},
0.15);
#endif
// end of adf.cxx

View file

@ -159,4 +159,12 @@ AirspeedIndicator::computeMach()
_tas_node->setDoubleValue(V_true * SG_MPS_TO_KT );
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<AirspeedIndicator> registrantAirspeedIndicator(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of airspeed_indicator.cxx

View file

@ -144,4 +144,12 @@ Altimeter::update (double dt)
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<Altimeter> registrantAltimeter(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of altimeter.cxx

View file

@ -180,4 +180,12 @@ AttitudeIndicator::update (double dt)
_pitch_out_node->setDoubleValue(pitch + pitch_error);
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<AttitudeIndicator> registrantAttitudeIndicator(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of attitude_indicator.cxx

View file

@ -131,4 +131,12 @@ Clock::update (double delta_time_sec)
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<Clock> registrantClock(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}},
0.25);
#endif
// end of clock.cxx

View file

@ -720,5 +720,13 @@ SGSubsystem * CommRadio::createInstance(SGPropertyNode_ptr rootNode)
return new CommRadioImpl(rootNode);
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<CommRadio> registrantCommRadio(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
} // namespace Instrumentation

View file

@ -253,4 +253,12 @@ void DME::clear()
_audioIdent->setIdent("", 0.0);
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<DME> registrantDME(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}},
1.0);
#endif
// end of dme.cxx

View file

@ -1601,4 +1601,12 @@ void GPS::tieSGGeodReadOnly(SGPropertyNode* aNode, SGGeod& aRef,
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<GPS> registrantGPS(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of gps.cxx

View file

@ -83,4 +83,12 @@ void GSDI::update(double /*delta_time_sec*/)
_drift_angleN->setDoubleValue(angle);
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<GSDI> registrantGSDI(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of gsdi.cxx

View file

@ -128,4 +128,12 @@ HeadingIndicator::update (double dt)
_heading_bug_error_node->setDoubleValue( diff );
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<HeadingIndicator> registrantHeadingIndicator(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of heading_indicator.cxx

View file

@ -204,4 +204,12 @@ HeadingIndicatorDG::update (double dt)
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<HeadingIndicatorDG> registrantHeadingIndicatorDG(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of heading_indicator_dg.cxx

View file

@ -184,4 +184,12 @@ HeadingIndicatorFG::update (double dt)
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<HeadingIndicatorFG> registrantHeadingIndicatorFG(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of heading_indicator_fg.cxx

View file

@ -238,4 +238,12 @@ void InstVerticalSpeedIndicator::update (double dt)
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<InstVerticalSpeedIndicator> registrantInstVerticalSpeedIndicator(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of inst_vertical_speed_indicator.cxx

View file

@ -226,4 +226,9 @@ bool FGInstrumentMgr::build (SGPropertyNode* config_props)
return true;
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGInstrumentMgr> registrantFGInstrumentMgr(
SGSubsystemMgr::FDM);
// end of instrument_manager.cxx

View file

@ -537,3 +537,12 @@ int FGKR_87::get_stby_freq() const {
}
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<FGKR_87> registrantFGKR_87(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD},
{"sound", SGSubsystemMgr::Dependency::HARD}});
#endif

View file

@ -199,4 +199,12 @@ MagCompass::update (double delta_time_sec)
_out_node->setDoubleValue(indicated_deg);
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<MagCompass> registrantMagCompass(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of altimeter.cxx

View file

@ -340,3 +340,11 @@ void FGMarkerBeacon::search()
last_beacon = NOBEACON;
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<FGMarkerBeacon> registrantFGMarkerBeacon(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}},
0.2);
#endif

View file

@ -4700,3 +4700,12 @@ MK_VIII::update (double dt)
alert_handler.update();
io_handler.update_outputs();
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<MK_VIII> registrantMK_VIII(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}},
0.2);
#endif

View file

@ -296,4 +296,12 @@ MasterReferenceGyro::update (double dt)
_hdg_rate_out_node ->setDoubleValue( _indicated_hdg_rate );
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<MasterReferenceGyro> registrantMasterReferenceGyro(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of mrg.cxx

View file

@ -967,3 +967,11 @@ void FGNavRadio::updateNav()
id_c3_node->setIntValue( (int)identBuffer[2] );
id_c4_node->setIntValue( (int)identBuffer[3] );
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<FGNavRadio> registrantFGNavRadio(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif

View file

@ -972,5 +972,13 @@ SGSubsystem * NavRadio::createInstance( SGPropertyNode_ptr rootNode )
return new FGNavRadio( rootNode );
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<NavRadio> registrantNavRadio(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
} // namespace Instrumentation

View file

@ -216,3 +216,10 @@ SGVec3d RadarAltimeter::rayVector(double az, double el) const
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<RadarAltimeter> registrantRadarAltimeter(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif

View file

@ -59,4 +59,13 @@ SlipSkidBall::update (double delta_time_sec)
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<SlipSkidBall> registrantSlipSkidBall(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}},
0.03);
#endif
// end of slip_skid_ball.cxx

View file

@ -360,4 +360,13 @@ TACAN::valueChanged(SGPropertyNode *prop)
_listener_active--;
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<TACAN> registrantTACAN(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}},
0.2);
#endif
// end of TACAN.cxx

View file

@ -1527,3 +1527,12 @@ TCAS::Tracker::getThreatLevel(string callsign)
else
return 0;
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<TCAS> registrantTCAS(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}},
0.2);
#endif

View file

@ -347,3 +347,10 @@ bool Transponder::isPowerSwitchOn() const
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<Transponder> registrantTransponder(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}},
0.2);
#endif

View file

@ -113,4 +113,12 @@ TurnIndicator::update (double dt)
_rate_out_node->setDoubleValue(rate);
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<TurnIndicator> registrantTurnIndicator(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of turn_indicator.cxx

View file

@ -139,4 +139,12 @@ VerticalSpeedIndicator::update (double dt)
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::InstancedRegistrant<VerticalSpeedIndicator> registrantVerticalSpeedIndicator(
SGSubsystemMgr::FDM,
{{"instrumentation", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of vertical_speed_indicator.cxx

View file

@ -35,3 +35,8 @@ FGInterpolator::~FGInterpolator()
if( SGPropertyNode::getInterpolationMgr() == this )
SGPropertyNode::setInterpolationMgr(0);
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGInterpolator> registrantFGInterpolator(
SGSubsystemMgr::INIT);

View file

@ -450,3 +450,6 @@ bool FGIO::isMultiplayerRequested()
{ return (channelOption.find("multiplay") == 0); });
return it != channels->end();
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGIO> registrantFGIO;

View file

@ -494,6 +494,9 @@ FGProperties::update (double dt)
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGProperties> registrantFGProperties;
////////////////////////////////////////////////////////////////////////
// Save and restore.

View file

@ -164,4 +164,8 @@ FGLogger::Log::Log ()
{
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGLogger> registrantFGLogger;
// end of logger.cxx

View file

@ -210,4 +210,8 @@ FGAircraftModel::update (double dt)
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGAircraftModel> registrantFGAircraftModel(
SGSubsystemMgr::DISPLAY);
// end of model.cxx

View file

@ -313,4 +313,9 @@ FGModelMgr::Listener::childRemoved(SGPropertyNode * parent, SGPropertyNode * chi
}
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGModelMgr> registrantFGModelMgr(
SGSubsystemMgr::DISPLAY);
// end of modelmgr.cxx

View file

@ -2377,3 +2377,12 @@ FGMultiplayMgr::findProperties()
SG_LOG(SG_NETWORK, SG_DEBUG, "activating MP property:" << pNode->getPath());
}
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGMultiplayMgr> registrantFGMultiplayMgr(
SGSubsystemMgr::POST_FDM,
{{"ai-model", SGSubsystemMgr::Dependency::HARD},
{"flight", SGSubsystemMgr::Dependency::HARD},
{"mp", SGSubsystemMgr::Dependency::HARD},
{"time", SGSubsystemMgr::Dependency::HARD}});

View file

@ -69,3 +69,7 @@ void FGDNSClient::makeRequest(const simgear::DNS::Request_ptr& req)
{
_dns->makeRequest(req);
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGDNSClient> registrantFGDNSClient;

View file

@ -297,3 +297,9 @@ void FGHTTPClient::makeRequest(const simgear::HTTP::Request_ptr& req)
{
_http->makeRequest(req);
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGHTTPClient> registrantFGHTTPClient(
SGSubsystemMgr::GENERAL,
{{"nasal", SGSubsystemMgr::Dependency::HARD}});

View file

@ -102,3 +102,7 @@ void SwiftConnection::reinit()
shutdown();
init();
}
// Register the subsystem.
SGSubsystemMgr::Registrant<SwiftConnection> registrantSwiftConnection(
SGSubsystemMgr::POST_FDM);

View file

@ -723,3 +723,5 @@ bool FGCom::isInRange(const double &freq) const
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGCom> registrantFGCom;

View file

@ -642,5 +642,11 @@ FGHttpd * FGHttpd::createInstance(SGPropertyNode_ptr configNode)
return new MongooseHttpd(configNode);
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<MongooseHttpd> registrantMongooseHttpd;
#endif
} // namespace http
} // namespace flightgear

View file

@ -501,3 +501,10 @@ void FGScenery::resetPagerSingleton()
{
pager = NULL;
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGScenery> registrantFGScenery(
SGSubsystemMgr::DISPLAY,
{{"FGRenderer", SGSubsystemMgr::Dependency::NONSUBSYSTEM_HARD},
{"SGSky", SGSubsystemMgr::Dependency::NONSUBSYSTEM_HARD}});

View file

@ -1620,6 +1620,11 @@ void FGNasalSys::removePersistentTimer(TimerObj* obj)
_persistentTimers.erase(it);
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGNasalSys> registrantFGNasalSys(
SGSubsystemMgr::INIT);
//////////////////////////////////////////////////////////////////////////
// FGNasalListener class.

View file

@ -240,5 +240,10 @@ VoiceSynthesizer * FGSoundManager::getSynthesizer( const std::string & voice )
}
return it->second;
}
#endif // ENABLE_AUDIO_SUPPORT
// Register the subsystem.
SGSubsystemMgr::Registrant<FGSoundManager> registrantFGSoundManager(
SGSubsystemMgr::SOUND,
{{"SGSoundMgr", SGSubsystemMgr::Dependency::HARD}});

View file

@ -137,6 +137,9 @@ void FGVoiceMgr::update(double dt)
}
// Register the subsystem.
SGSubsystemMgr::Registrant<FGVoiceMgr> registrantFGVoiceMgr(
SGSubsystemMgr::DISPLAY);
/// VOICE ///

View file

@ -732,3 +732,9 @@ FGElectricalComponent *FGElectricalSystem::find ( const string &name ) {
// nothing found
return NULL;
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<FGElectricalSystem> registrantFGElectricalSystem;
#endif

View file

@ -85,4 +85,13 @@ PitotSystem::update (double dt)
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<PitotSystem> registrantPitotSystem(
SGSubsystemMgr::POST_FDM,
{{"static", SGSubsystemMgr::Dependency::SOFT},
{"vacuum", SGSubsystemMgr::Dependency::SOFT}});
#endif
// end of pitot.cxx

View file

@ -110,4 +110,12 @@ StaticSystem::update (double dt)
}
}
// Register the subsystem.
#if 0
SGSubsystemMgr::Registrant<StaticSystem> registrantStaticSystem(
SGSubsystemMgr::GENERAL,
{{"vacuum", SGSubsystemMgr::Dependency::HARD}});
#endif
// end of static.cxx

Some files were not shown because too many files have changed in this diff Show more