SGSubsystem classes: Registration of all subsystems.
This commit is contained in:
parent
d259c70560
commit
34a6cb3c74
109 changed files with 645 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -171,3 +171,6 @@ const string& PerformanceDB::findAlias(const string& acType) const
|
|||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<PerformanceDB> registrantPerformanceDB(
|
||||
SGSubsystemMgr::POST_FDM);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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}});
|
||||
|
|
|
@ -225,3 +225,6 @@ size_t FGFlightHistory::currentMemoryUseBytes() const
|
|||
return sizeof(SampleBucket) * m_buckets.size();
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGFlightHistory> registrantFGFlightHistory;
|
||||
|
|
|
@ -1881,3 +1881,6 @@ FGControls::set_autopilot_engage( int ap, bool val )
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGControls> registrantFGControls;
|
||||
|
|
|
@ -1145,3 +1145,7 @@ FGReplay::loadTape(const SGPropertyNode* ConfigData)
|
|||
return loadTape(tapeDirectory, Preview, UserData);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGReplay> registrantFGReplay;
|
||||
|
|
|
@ -106,4 +106,7 @@ FGAirportDynamicsRef AirportDynamicsManager::find(const FGAirportRef& apt)
|
|||
return find(apt->ident());
|
||||
}
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<AirportDynamicsManager> registrantAirportDynamicsManager;
|
||||
|
||||
} // of namespace flightgear
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -841,3 +841,7 @@ void DigitalFilter::update( bool firstTime, double dt)
|
|||
<< "\toutput:" << output << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<DigitalFilter> registrantDigitalFilter;
|
||||
|
|
|
@ -485,3 +485,5 @@ void FlipFlop::update( bool firstTime, double dt )
|
|||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FlipFlop> registrantFlipFlop;
|
||||
|
|
|
@ -71,3 +71,6 @@ void Logic::update( bool firstTime, double dt )
|
|||
set_output( get_input() );
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<Logic> registrantLogic;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -77,3 +77,7 @@ void Predictor::update( bool firstTime, double dt )
|
|||
|
||||
_last_value = ivalue;
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<Predictor> registrantPredictor;
|
||||
|
|
|
@ -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}});
|
||||
|
|
|
@ -144,3 +144,8 @@ void CanvasMgr::handleModelReinit(SGPropertyNode*)
|
|||
element->reloadPlacements("object");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<CanvasMgr> registrantCanvasMgr(
|
||||
SGSubsystemMgr::DISPLAY);
|
||||
|
|
|
@ -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}});
|
||||
|
|
|
@ -1481,3 +1481,9 @@ void NavDisplay::processCustomSymbols()
|
|||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<NavDisplay> registrantNavDisplay(
|
||||
SGSubsystemMgr::GENERAL,
|
||||
{{"route-manager", SGSubsystemMgr::Dependency::HARD}});
|
||||
#endif
|
||||
|
|
|
@ -323,3 +323,7 @@ agRadar::update_terrain()
|
|||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<agRadar> registrantagRadar;
|
||||
#endif
|
||||
|
|
|
@ -118,4 +118,9 @@ bool CockpitDisplayManager::build (SGPropertyNode* config_props)
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<CockpitDisplayManager> registrantCockpitDisplayManager(
|
||||
SGSubsystemMgr::DISPLAY);
|
||||
|
||||
} // of namespace flightgear
|
||||
|
|
|
@ -349,4 +349,10 @@ void GroundRadar::updateTexture()
|
|||
getCamera()->setNodeMask(0xffffffff);
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<GroundRadar> registrantGroundRadar;
|
||||
#endif
|
||||
|
||||
// end of GroundRadar.cxx
|
||||
|
|
|
@ -1117,3 +1117,8 @@ wxRadarBg::valueChanged(SGPropertyNode*)
|
|||
_time = _interval;
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<wxRadarBg> registrantwxRadarBg;
|
||||
#endif
|
||||
|
|
|
@ -351,4 +351,9 @@ LayerInterpolateController * LayerInterpolateController::createInstance( SGPrope
|
|||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<LayerInterpolateControllerImplementation> registrantLayerInterpolateControllerImplementation;
|
||||
#endif
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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}});
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 -------------------------- */
|
||||
|
|
|
@ -230,3 +230,9 @@ void FGExternalNet::update( double dt ) {
|
|||
FGNetFDM2Props( &fdm );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<FGExternalNet> registrantFGExternalNet;
|
||||
#endif
|
||||
|
|
|
@ -582,3 +582,7 @@ void FGExternalPipe::update_property( double dt ) {
|
|||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<FGExternalPipe> registrantFGExternalPipe;
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -948,3 +948,8 @@ void FGLaRCsim::set_Density(double rho) {
|
|||
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<FGLaRCsim> registrantFGLaRCsim;
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -331,3 +331,9 @@ bool FGADA::copy_from_FGADA() {
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<FGADA> registrantFGADA;
|
||||
#endif
|
||||
|
|
|
@ -706,3 +706,8 @@ FGAISim::load(std::string path)
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<FGAISim> registrantFGAISim;
|
||||
#endif
|
||||
|
|
|
@ -199,3 +199,7 @@ bool FGBalloonSim::copy_from_BalloonSim() {
|
|||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<FGBalloonSim> registrantFGBalloonSim;
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -192,3 +192,7 @@ void FGUFO::update( double dt ) {
|
|||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<FGUFO> registrantFGUFO;
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -459,4 +459,9 @@ NewGUI::setupFont (SGPropertyNode *node)
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<NewGUI> registrantNewGUI(
|
||||
SGSubsystemMgr::INIT);
|
||||
|
||||
// end of new_gui.cxx
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -409,3 +409,8 @@ void FGJoystickInput::update( double dt )
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGJoystickInput> registrantFGJoystickInput(
|
||||
SGSubsystemMgr::GENERAL,
|
||||
{{"nasal", SGSubsystemMgr::Dependency::HARD}});
|
||||
|
|
|
@ -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}});
|
||||
|
|
|
@ -719,3 +719,7 @@ bool FGMouseInput::isActiveModePassThrough() const
|
|||
|
||||
return m.modes[mode].pass_through;
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGMouseInput> registrantFGMouseInput;
|
||||
|
|
|
@ -100,3 +100,7 @@ FGInput::~FGInput ()
|
|||
{
|
||||
// SGSubsystemGroup deletes all subsystem in it's destructor
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGInput> registrantFGInput;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -35,3 +35,8 @@ FGInterpolator::~FGInterpolator()
|
|||
if( SGPropertyNode::getInterpolationMgr() == this )
|
||||
SGPropertyNode::setInterpolationMgr(0);
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGInterpolator> registrantFGInterpolator(
|
||||
SGSubsystemMgr::INIT);
|
||||
|
|
|
@ -450,3 +450,6 @@ bool FGIO::isMultiplayerRequested()
|
|||
{ return (channelOption.find("multiplay") == 0); });
|
||||
return it != channels->end();
|
||||
}
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGIO> registrantFGIO;
|
||||
|
|
|
@ -494,6 +494,9 @@ FGProperties::update (double dt)
|
|||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGProperties> registrantFGProperties;
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// Save and restore.
|
||||
|
|
|
@ -164,4 +164,8 @@ FGLogger::Log::Log ()
|
|||
{
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGLogger> registrantFGLogger;
|
||||
|
||||
// end of logger.cxx
|
||||
|
|
|
@ -210,4 +210,8 @@ FGAircraftModel::update (double dt)
|
|||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGAircraftModel> registrantFGAircraftModel(
|
||||
SGSubsystemMgr::DISPLAY);
|
||||
|
||||
// end of model.cxx
|
||||
|
|
|
@ -313,4 +313,9 @@ FGModelMgr::Listener::childRemoved(SGPropertyNode * parent, SGPropertyNode * chi
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGModelMgr> registrantFGModelMgr(
|
||||
SGSubsystemMgr::DISPLAY);
|
||||
|
||||
// end of modelmgr.cxx
|
||||
|
|
|
@ -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}});
|
||||
|
|
|
@ -69,3 +69,7 @@ void FGDNSClient::makeRequest(const simgear::DNS::Request_ptr& req)
|
|||
{
|
||||
_dns->makeRequest(req);
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGDNSClient> registrantFGDNSClient;
|
||||
|
|
|
@ -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}});
|
||||
|
|
|
@ -102,3 +102,7 @@ void SwiftConnection::reinit()
|
|||
shutdown();
|
||||
init();
|
||||
}
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<SwiftConnection> registrantSwiftConnection(
|
||||
SGSubsystemMgr::POST_FDM);
|
||||
|
|
|
@ -723,3 +723,5 @@ bool FGCom::isInRange(const double &freq) const
|
|||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGCom> registrantFGCom;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}});
|
||||
|
|
|
@ -1620,6 +1620,11 @@ void FGNasalSys::removePersistentTimer(TimerObj* obj)
|
|||
_persistentTimers.erase(it);
|
||||
}
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGNasalSys> registrantFGNasalSys(
|
||||
SGSubsystemMgr::INIT);
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// FGNasalListener class.
|
||||
|
||||
|
|
|
@ -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}});
|
||||
|
|
|
@ -137,6 +137,9 @@ void FGVoiceMgr::update(double dt)
|
|||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
SGSubsystemMgr::Registrant<FGVoiceMgr> registrantFGVoiceMgr(
|
||||
SGSubsystemMgr::DISPLAY);
|
||||
|
||||
|
||||
/// VOICE ///
|
||||
|
|
|
@ -732,3 +732,9 @@ FGElectricalComponent *FGElectricalSystem::find ( const string &name ) {
|
|||
// nothing found
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
// Register the subsystem.
|
||||
#if 0
|
||||
SGSubsystemMgr::Registrant<FGElectricalSystem> registrantFGElectricalSystem;
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
Loading…
Add table
Reference in a new issue