SGSubsystem classes: Addition of staticSubsystemClassId() to all subsystems.
This commit is contained in:
parent
0eb8716d45
commit
d259c70560
94 changed files with 282 additions and 1 deletions
|
@ -104,6 +104,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "submodel-mgr"; }
|
||||||
|
|
||||||
void load();
|
void load();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -57,6 +57,9 @@ public:
|
||||||
void shutdown() override;
|
void shutdown() override;
|
||||||
void update(double time) override;
|
void update(double time) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "ATC"; }
|
||||||
|
|
||||||
void addController(FGATCController *controller);
|
void addController(FGATCController *controller);
|
||||||
void removeController(FGATCController* controller);
|
void removeController(FGATCController* controller);
|
||||||
};
|
};
|
||||||
|
|
|
@ -63,6 +63,9 @@ public:
|
||||||
void shutdown() override;
|
void shutdown() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "history"; }
|
||||||
|
|
||||||
PagedPathForHistory_ptr pagedPathForHistory(size_t max_entries, size_t newerThan = 0) const;
|
PagedPathForHistory_ptr pagedPathForHistory(size_t max_entries, size_t newerThan = 0) const;
|
||||||
/**
|
/**
|
||||||
* retrieve the path, collapsing segments shorter than
|
* retrieve the path, collapsing segments shorter than
|
||||||
|
|
|
@ -54,6 +54,9 @@ public:
|
||||||
inner = simgear::StateMachine::createFromPlist(&cfg, &props_root);
|
inner = simgear::StateMachine::createFromPlist(&cfg, &props_root);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "state-machine"; }
|
||||||
|
|
||||||
virtual bool configure( const std::string & nodeName, SGPropertyNode_ptr config) {
|
virtual bool configure( const std::string & nodeName, SGPropertyNode_ptr config) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "autopilot"; }
|
||||||
|
|
||||||
void set_serviceable( bool value ) { _serviceable = value; }
|
void set_serviceable( bool value ) { _serviceable = value; }
|
||||||
bool is_serviceable() const { return _serviceable; }
|
bool is_serviceable() const { return _serviceable; }
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,9 @@ public:
|
||||||
InitStatus incrementalInit() override;
|
InitStatus incrementalInit() override;
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "xml-autopilot-group"; }
|
||||||
|
|
||||||
virtual void addAutopilot( const std::string& name,
|
virtual void addAutopilot( const std::string& name,
|
||||||
SGPropertyNode_ptr apNode,
|
SGPropertyNode_ptr apNode,
|
||||||
SGPropertyNode_ptr config );
|
SGPropertyNode_ptr config );
|
||||||
|
|
|
@ -31,6 +31,9 @@
|
||||||
class FGXMLAutopilotGroup : public SGSubsystemGroup
|
class FGXMLAutopilotGroup : public SGSubsystemGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "xml-rules"; }
|
||||||
|
|
||||||
static FGXMLAutopilotGroup * createInstance(const std::string& nodeName);
|
static FGXMLAutopilotGroup * createInstance(const std::string& nodeName);
|
||||||
|
|
||||||
void addAutopilotFromFile( const std::string & name, SGPropertyNode_ptr apNode, const char * path );
|
void addAutopilotFromFile( const std::string & name, SGPropertyNode_ptr apNode, const char * path );
|
||||||
|
|
|
@ -62,6 +62,9 @@ public:
|
||||||
DigitalFilter();
|
DigitalFilter();
|
||||||
~DigitalFilter();
|
~DigitalFilter();
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "filter"; }
|
||||||
|
|
||||||
virtual bool configure( SGPropertyNode& prop_root,
|
virtual bool configure( SGPropertyNode& prop_root,
|
||||||
SGPropertyNode& cfg );
|
SGPropertyNode& cfg );
|
||||||
};
|
};
|
||||||
|
|
|
@ -66,6 +66,8 @@ public:
|
||||||
class FlipFlop : public Logic
|
class FlipFlop : public Logic
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "flipflop"; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -39,6 +39,9 @@ public:
|
||||||
void set_output( bool value );
|
void set_output( bool value );
|
||||||
bool get_output() const;
|
bool get_output() const;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "logic"; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void update( bool firstTime, double dt );
|
void update( bool firstTime, double dt );
|
||||||
};
|
};
|
||||||
|
|
|
@ -70,6 +70,9 @@ public:
|
||||||
PIDController();
|
PIDController();
|
||||||
~PIDController() {}
|
~PIDController() {}
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "pid-controller"; }
|
||||||
|
|
||||||
void update( bool firstTime, double dt );
|
void update( bool firstTime, double dt );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,9 @@ public:
|
||||||
PISimpleController();
|
PISimpleController();
|
||||||
~PISimpleController() {}
|
~PISimpleController() {}
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "pi-simple-controller"; }
|
||||||
|
|
||||||
void update( bool firstTime, double dt );
|
void update( bool firstTime, double dt );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,9 @@ public:
|
||||||
Predictor();
|
Predictor();
|
||||||
~Predictor() {}
|
~Predictor() {}
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "predict-simple"; }
|
||||||
|
|
||||||
void update( bool firstTime, double dt );
|
void update( bool firstTime, double dt );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,9 @@ public:
|
||||||
void shutdown() override;
|
void shutdown() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "CanvasGUI"; }
|
||||||
|
|
||||||
simgear::canvas::WindowPtr createWindow(const std::string& name = "");
|
simgear::canvas::WindowPtr createWindow(const std::string& name = "");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -66,6 +66,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "navigation-display"; }
|
||||||
|
|
||||||
void invalidatePositionedCache()
|
void invalidatePositionedCache()
|
||||||
{
|
{
|
||||||
_cachedItemsValid = false;
|
_cachedItemsValid = false;
|
||||||
|
|
|
@ -41,6 +41,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "air-ground-radar"; }
|
||||||
|
|
||||||
void setUserPos();
|
void setUserPos();
|
||||||
void setUserVec(double az, double el);
|
void setUserVec(double az, double el);
|
||||||
void update_terrain();
|
void update_terrain();
|
||||||
|
|
|
@ -43,6 +43,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
InitStatus incrementalInit() override;
|
InitStatus incrementalInit() override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "cockpit-displays"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool build (SGPropertyNode* config_props);
|
bool build (SGPropertyNode* config_props);
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,9 @@ class GroundRadar : public SGSubsystem,
|
||||||
private FGODGauge
|
private FGODGauge
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "groundradar"; }
|
||||||
|
|
||||||
static const int TextureHalfSize = 256;
|
static const int TextureHalfSize = 256;
|
||||||
GroundRadar(SGPropertyNode* node);
|
GroundRadar(SGPropertyNode* node);
|
||||||
virtual ~GroundRadar();
|
virtual ~GroundRadar();
|
||||||
|
|
|
@ -49,6 +49,9 @@ public:
|
||||||
void shutdown() override;
|
void shutdown() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "radar"; }
|
||||||
|
|
||||||
virtual void valueChanged(SGPropertyNode *);
|
virtual void valueChanged(SGPropertyNode *);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -114,6 +114,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double delta_time_sec) override;
|
void update(double delta_time_sec) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "layer-interpolate-controller"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SGPropertyNode_ptr _rootNode;
|
SGPropertyNode_ptr _rootNode;
|
||||||
bool _enabled;
|
bool _enabled;
|
||||||
|
|
|
@ -54,6 +54,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "environment"; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the environment information for the plane's current position.
|
* Get the environment information for the plane's current position.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -40,6 +40,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "magvar"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<SGMagVar> _magVar;
|
std::unique_ptr<SGMagVar> _magVar;
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "precipitation"; }
|
||||||
|
|
||||||
void setupSceneGraph(void);
|
void setupSceneGraph(void);
|
||||||
void setPrecipitationLevel(double l);
|
void setPrecipitationLevel(double l);
|
||||||
};
|
};
|
||||||
|
|
|
@ -412,6 +412,9 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "noaa-metar-real-wx-controller"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string noaa_base_url;
|
std::string noaa_base_url;
|
||||||
};
|
};
|
||||||
|
|
|
@ -50,6 +50,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "ridgelift"; }
|
||||||
|
|
||||||
inline double getStrength() const { return strength; };
|
inline double getStrength() const { return strength; };
|
||||||
|
|
||||||
inline double get_probe_elev_m( int index ) const { return probe_elev_m[index]; };
|
inline double get_probe_elev_m( int index ) const { return probe_elev_m[index]; };
|
||||||
|
|
|
@ -57,6 +57,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "area"; }
|
||||||
|
|
||||||
int getElevationHistogramStep() const { return _elevationHistogramStep; }
|
int getElevationHistogramStep() const { return _elevationHistogramStep; }
|
||||||
void setElevationHistograpStep( int value ) {
|
void setElevationHistograpStep( int value ) {
|
||||||
_elevationHistogramStep = value > 0 ? value : 500;
|
_elevationHistogramStep = value > 0 ? value : 500;
|
||||||
|
@ -333,6 +336,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double delta_time_sec) override;
|
void update(double delta_time_sec) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "terrain-sampler"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
inline string areaSubsystemName( unsigned i ) {
|
inline string areaSubsystemName( unsigned i ) {
|
||||||
ostringstream name;
|
ostringstream name;
|
||||||
|
|
|
@ -57,6 +57,9 @@ public:
|
||||||
// Subsystem API.
|
// Subsystem API.
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "network"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _EXTERNAL_NET_HXX
|
#endif // _EXTERNAL_NET_HXX
|
||||||
|
|
|
@ -73,6 +73,9 @@ public:
|
||||||
// Subsystem API.
|
// Subsystem API.
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "pipe"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _EXTERNAL_PIPE_HXX
|
#endif // _EXTERNAL_PIPE_HXX
|
||||||
|
|
|
@ -114,6 +114,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "jsb"; }
|
||||||
|
|
||||||
/// copy FDM state to LaRCsim structures
|
/// copy FDM state to LaRCsim structures
|
||||||
bool copy_to_JSBsim();
|
bool copy_to_JSBsim();
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "larcsim"; }
|
||||||
|
|
||||||
// copy FDM state to LaRCsim structures
|
// copy FDM state to LaRCsim structures
|
||||||
bool copy_to_LaRCsim();
|
bool copy_to_LaRCsim();
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,9 @@ public:
|
||||||
// Subsystem API.
|
// Subsystem API.
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "null"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _NULLFDM_HXX
|
#endif // _NULLFDM_HXX
|
||||||
|
|
|
@ -38,6 +38,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "acms"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SGPropertyNode_ptr _alt, _speed, _climb_rate;
|
SGPropertyNode_ptr _alt, _speed, _climb_rate;
|
||||||
SGPropertyNode_ptr _pitch, _roll, _heading;
|
SGPropertyNode_ptr _pitch, _roll, _heading;
|
||||||
|
|
|
@ -76,6 +76,9 @@ public:
|
||||||
// Subsystem API.
|
// Subsystem API.
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "ada"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _ADA_HXX
|
#endif // _ADA_HXX
|
||||||
|
|
|
@ -79,6 +79,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "aisim"; }
|
||||||
|
|
||||||
bool load(std::string path);
|
bool load(std::string path);
|
||||||
|
|
||||||
#ifdef ENABLE_SP_FDM
|
#ifdef ENABLE_SP_FDM
|
||||||
|
|
|
@ -67,6 +67,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "balloon"; }
|
||||||
|
|
||||||
// copy FDM state to BalloonSim structures
|
// copy FDM state to BalloonSim structures
|
||||||
bool copy_to_BalloonSim();
|
bool copy_to_BalloonSim();
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,9 @@ public:
|
||||||
// Subsystem API.
|
// Subsystem API.
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "magic"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _MAGICCARPET_HXX
|
#endif // _MAGICCARPET_HXX
|
||||||
|
|
|
@ -67,6 +67,9 @@ public:
|
||||||
// Subsystem API.
|
// Subsystem API.
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "ufo"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _UFO_HXX
|
#endif // _UFO_HXX
|
||||||
|
|
|
@ -18,6 +18,9 @@ public:
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "yasim"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void report();
|
void report();
|
||||||
void copyFromYASim();
|
void copyFromYASim();
|
||||||
|
|
|
@ -47,7 +47,7 @@ public:
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
// Subsystem identification.
|
// Subsystem identification.
|
||||||
static const char* staticSubsystemClassId() { return "input-hid"; }
|
static const char* staticSubsystemClassId() { return "input-event-hid"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class FGHIDEventInputPrivate;
|
class FGHIDEventInputPrivate;
|
||||||
|
|
|
@ -49,6 +49,9 @@ public:
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "input-joystick"; }
|
||||||
|
|
||||||
static const int MAX_JOYSTICKS = 16;
|
static const int MAX_JOYSTICKS = 16;
|
||||||
static const int MAX_JOYSTICK_AXES = _JS_MAX_AXES;
|
static const int MAX_JOYSTICK_AXES = _JS_MAX_AXES;
|
||||||
static const int MAX_JOYSTICK_BUTTONS = 32;
|
static const int MAX_JOYSTICK_BUTTONS = 32;
|
||||||
|
|
|
@ -51,6 +51,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "input-keyboard"; }
|
||||||
|
|
||||||
static const int MAX_KEYS = 1024;
|
static const int MAX_KEYS = 1024;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -75,6 +75,9 @@ public:
|
||||||
void postinit() override;
|
void postinit() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "input-event"; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,9 @@ public:
|
||||||
void shutdown() override;
|
void shutdown() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "input-event"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class FGMacOSXEventInputPrivate;
|
friend class FGMacOSXEventInputPrivate;
|
||||||
|
|
||||||
|
|
|
@ -127,6 +127,9 @@ public:
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
void update(double) override;
|
void update(double) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "hud"; }
|
||||||
|
|
||||||
// called from Main/renderer.cxx to draw 2D and 3D HUD
|
// called from Main/renderer.cxx to draw 2D and 3D HUD
|
||||||
void draw(osg::State&);
|
void draw(osg::State&);
|
||||||
|
|
||||||
|
|
|
@ -102,6 +102,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "KLN89"; }
|
||||||
|
|
||||||
// Set Units
|
// Set Units
|
||||||
// m if true, ft if false
|
// m if true, ft if false
|
||||||
inline void SetAltUnitsSI(bool b) { _altUnits = (b ? GPS_ALT_UNITS_M : GPS_ALT_UNITS_FT); }
|
inline void SetAltUnitsSI(bool b) { _altUnits = (b ? GPS_ALT_UNITS_M : GPS_ALT_UNITS_FT); }
|
||||||
|
|
|
@ -47,6 +47,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double delta_time_sec) override;
|
void update(double delta_time_sec) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "adf"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void set_bearing (double delta_time_sec, double bearing);
|
void set_bearing (double delta_time_sec, double bearing);
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,9 @@ public:
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "airspeed-indicator"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void computeMach();
|
void computeMach();
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "altimeter"; }
|
||||||
|
|
||||||
double getSettingInHg() const;
|
double getSettingInHg() const;
|
||||||
void setSettingInHg( double value );
|
void setSettingInHg( double value );
|
||||||
double getSettingHPa() const;
|
double getSettingHPa() const;
|
||||||
|
|
|
@ -49,6 +49,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "attitude-indicator"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string _name;
|
std::string _name;
|
||||||
int _num;
|
int _num;
|
||||||
|
|
|
@ -36,6 +36,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "clock"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string _name;
|
std::string _name;
|
||||||
unsigned int _num;
|
unsigned int _num;
|
||||||
|
|
|
@ -40,6 +40,9 @@ typedef SGSharedPtr<SignalQualityComputer> SignalQualityComputerRef;
|
||||||
class CommRadio : public AbstractInstrument
|
class CommRadio : public AbstractInstrument
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "comm-radio"; }
|
||||||
|
|
||||||
static SGSubsystem * createInstance( SGPropertyNode_ptr rootNode );
|
static SGSubsystem * createInstance( SGPropertyNode_ptr rootNode );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,9 @@ public:
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
void update(double delta_time_sec) override;
|
void update(double delta_time_sec) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "dme"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double delta_time_sec) override;
|
void update(double delta_time_sec) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "gps"; }
|
||||||
|
|
||||||
// RNAV interface
|
// RNAV interface
|
||||||
virtual SGGeod position();
|
virtual SGGeod position();
|
||||||
virtual double trackDeg();
|
virtual double trackDeg();
|
||||||
|
|
|
@ -51,6 +51,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "gsdi"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string _name;
|
std::string _name;
|
||||||
unsigned int _num;
|
unsigned int _num;
|
||||||
|
|
|
@ -46,6 +46,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "heading-indicator"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gyro _gyro;
|
Gyro _gyro;
|
||||||
double _last_heading_deg;
|
double _last_heading_deg;
|
||||||
|
|
|
@ -44,6 +44,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "heading-indicator-dg"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gyro _gyro;
|
Gyro _gyro;
|
||||||
double _last_heading_deg, _last_indicated_heading_dg;
|
double _last_heading_deg, _last_indicated_heading_dg;
|
||||||
|
|
|
@ -46,6 +46,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "heading-indicator-fg"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gyro _gyro;
|
Gyro _gyro;
|
||||||
double _last_heading_deg;
|
double _last_heading_deg;
|
||||||
|
|
|
@ -59,6 +59,9 @@ public:
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "inst-vertical-speed-indicator"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string _name;
|
std::string _name;
|
||||||
int _num;
|
int _num;
|
||||||
|
|
|
@ -35,6 +35,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
InitStatus incrementalInit() override;
|
InitStatus incrementalInit() override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "instrumentation"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool build (SGPropertyNode* config_props);
|
bool build (SGPropertyNode* config_props);
|
||||||
|
|
||||||
|
|
|
@ -115,6 +115,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt_sec) override;
|
void update(double dt_sec) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "KR-87"; }
|
||||||
|
|
||||||
// Update nav/adf radios based on current postition
|
// Update nav/adf radios based on current postition
|
||||||
void search ();
|
void search ();
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,9 @@ public:
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "magnetic-compass"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
double _rate_degps;
|
double _rate_degps;
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "marker-beacon"; }
|
||||||
|
|
||||||
void search ();
|
void search ();
|
||||||
|
|
||||||
// Marker Beacon Accessors
|
// Marker Beacon Accessors
|
||||||
|
|
|
@ -1379,6 +1379,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "mk-viii"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
|
@ -47,6 +47,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "master-reference-gyro"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const double gravity; //conversion factor
|
static const double gravity; //conversion factor
|
||||||
|
|
||||||
|
|
|
@ -178,6 +178,9 @@ public:
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "old-navradio"; }
|
||||||
|
|
||||||
// Update nav/adf radios based on current postition
|
// Update nav/adf radios based on current postition
|
||||||
void search ();
|
void search ();
|
||||||
void updateNav();
|
void updateNav();
|
||||||
|
|
|
@ -31,6 +31,9 @@ namespace Instrumentation {
|
||||||
class NavRadio : public SGSubsystem
|
class NavRadio : public SGSubsystem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "nav-radio"; }
|
||||||
|
|
||||||
static SGSubsystem * createInstance( SGPropertyNode_ptr rootNode );
|
static SGSubsystem * createInstance( SGPropertyNode_ptr rootNode );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "radar-altimeter"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void update_altitude();
|
void update_altitude();
|
||||||
void updateSetHeight();
|
void updateSetHeight();
|
||||||
|
|
|
@ -39,6 +39,9 @@ public:
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "slip-skid-ball"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string _name;
|
std::string _name;
|
||||||
int _num;
|
int _num;
|
||||||
|
|
|
@ -43,6 +43,9 @@ public:
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
void update(double delta_time_sec) override;
|
void update(double delta_time_sec) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "tacan"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void disabled(bool force = false);
|
void disabled(bool force = false);
|
||||||
|
|
||||||
|
|
|
@ -388,6 +388,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "tcas"; }
|
||||||
|
|
||||||
/* configuration options */
|
/* configuration options */
|
||||||
int _verticalRange;
|
int _verticalRange;
|
||||||
int _lateralRange;
|
int _lateralRange;
|
||||||
|
|
|
@ -40,6 +40,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "transponder"; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool isPowerSwitchOn() const override;
|
bool isPowerSwitchOn() const override;
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "turn-indicator"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gyro _gyro;
|
Gyro _gyro;
|
||||||
double _last_rate;
|
double _last_rate;
|
||||||
|
|
|
@ -42,6 +42,9 @@ public:
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "vertical-speed-indicator"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
double _casing_pressure_Pa = 0.0;
|
double _casing_pressure_Pa = 0.0;
|
||||||
double _casing_airmass_kg = 0.0;
|
double _casing_airmass_kg = 0.0;
|
||||||
|
|
|
@ -26,6 +26,9 @@ class FGInterpolator : public simgear::PropertyInterpolationMgr
|
||||||
public:
|
public:
|
||||||
FGInterpolator();
|
FGInterpolator();
|
||||||
~FGInterpolator();
|
~FGInterpolator();
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "prop-interpolator"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* FG_INTERPOLATOR_HXX_ */
|
#endif /* FG_INTERPOLATOR_HXX_ */
|
||||||
|
|
|
@ -48,12 +48,16 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "io"; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* helper to determine early in startup, if MP will be used.
|
* helper to determine early in startup, if MP will be used.
|
||||||
* This information is needed in the position-init code, to adjust the
|
* This information is needed in the position-init code, to adjust the
|
||||||
* start position off active runways.
|
* start position off active runways.
|
||||||
*/
|
*/
|
||||||
static bool isMultiplayerRequested();
|
static bool isMultiplayerRequested();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void add_channel(const std::string& config);
|
void add_channel(const std::string& config);
|
||||||
FGProtocol* parse_port_config( const std::string& cfgstr );
|
FGProtocol* parse_port_config( const std::string& cfgstr );
|
||||||
|
|
|
@ -29,6 +29,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "properties"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
simgear::TiedPropertyList _tiedProperties;
|
simgear::TiedPropertyList _tiedProperties;
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "logger"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
* A single instance of a log file (the logger can contain many).
|
* A single instance of a log file (the logger can contain many).
|
||||||
|
|
|
@ -60,6 +60,9 @@ public:
|
||||||
void shutdown() override;
|
void shutdown() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "mp"; }
|
||||||
|
|
||||||
// transmitter
|
// transmitter
|
||||||
|
|
||||||
void SendTextMessage(const std::string &sMsgText);
|
void SendTextMessage(const std::string &sMsgText);
|
||||||
|
|
|
@ -47,6 +47,9 @@ public:
|
||||||
void shutdown() override;
|
void shutdown() override;
|
||||||
void update(double delta_time_sec) override;
|
void update(double delta_time_sec) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "swift"; }
|
||||||
|
|
||||||
bool startServer(const SGPropertyNode* arg, SGPropertyNode* root);
|
bool startServer(const SGPropertyNode* arg, SGPropertyNode* root);
|
||||||
bool stopServer(const SGPropertyNode* arg, SGPropertyNode* root);
|
bool stopServer(const SGPropertyNode* arg, SGPropertyNode* root);
|
||||||
FGSwiftBus::CPlugin* plug;
|
FGSwiftBus::CPlugin* plug;
|
||||||
|
|
|
@ -38,6 +38,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "fgcom"; }
|
||||||
|
|
||||||
virtual void valueChanged(SGPropertyNode *prop);
|
virtual void valueChanged(SGPropertyNode *prop);
|
||||||
void iaxTextEvent(struct iaxc_ev_text text);
|
void iaxTextEvent(struct iaxc_ev_text text);
|
||||||
|
|
||||||
|
|
|
@ -185,6 +185,9 @@ public:
|
||||||
void unbind() override; // shutdown of mongoose, clear connections, unregister URIHandlers
|
void unbind() override; // shutdown of mongoose, clear connections, unregister URIHandlers
|
||||||
void update(double dt) override; // poll connections, check for changed properties
|
void update(double dt) override; // poll connections, check for changed properties
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "mongoose-httpd"; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a URIHandler for the given uri
|
* Returns a URIHandler for the given uri
|
||||||
*
|
*
|
||||||
|
|
|
@ -34,6 +34,9 @@ extern const char * PROPERTY_ROOT;
|
||||||
class FGHttpd : public SGSubsystem
|
class FGHttpd : public SGSubsystem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "httpd"; }
|
||||||
|
|
||||||
static FGHttpd * createInstance( SGPropertyNode_ptr configNode );
|
static FGHttpd * createInstance( SGPropertyNode_ptr configNode );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,9 @@ public:
|
||||||
void shutdown() override;
|
void shutdown() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "voice"; }
|
||||||
|
|
||||||
class FGVoice;
|
class FGVoice;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -225,6 +225,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "electrical"; }
|
||||||
|
|
||||||
bool build (SGPropertyNode* config_props);
|
bool build (SGPropertyNode* config_props);
|
||||||
float propagate( FGElectricalComponent *node, double dt,
|
float propagate( FGElectricalComponent *node, double dt,
|
||||||
float input_volts, float input_amps,
|
float input_volts, float input_amps,
|
||||||
|
|
|
@ -50,6 +50,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "pitot"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string _name;
|
std::string _name;
|
||||||
int _num;
|
int _num;
|
||||||
|
|
|
@ -47,6 +47,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "static"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string _name;
|
std::string _name;
|
||||||
int _num;
|
int _num;
|
||||||
|
|
|
@ -31,6 +31,9 @@ public:
|
||||||
FGSystemMgr ();
|
FGSystemMgr ();
|
||||||
virtual ~FGSystemMgr ();
|
virtual ~FGSystemMgr ();
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "systems"; }
|
||||||
|
|
||||||
bool build (SGPropertyNode* config_props);
|
bool build (SGPropertyNode* config_props);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "vacuum"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string _name;
|
std::string _name;
|
||||||
int _num;
|
int _num;
|
||||||
|
|
|
@ -146,6 +146,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "lighting"; }
|
||||||
|
|
||||||
// Color related functions
|
// Color related functions
|
||||||
|
|
||||||
inline const SGVec4f& scene_ambient () const { return _scene_ambient; }
|
inline const SGVec4f& scene_ambient () const { return _scene_ambient; }
|
||||||
|
|
|
@ -118,6 +118,9 @@ public:
|
||||||
void init() override;
|
void init() override;
|
||||||
void update(double time) override;
|
void update(double time) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "traffic-manager"; }
|
||||||
|
|
||||||
FGScheduledFlightVecIterator getFirstFlight(const std::string &ref) { return flights[ref].begin(); }
|
FGScheduledFlightVecIterator getFirstFlight(const std::string &ref) { return flights[ref].begin(); }
|
||||||
FGScheduledFlightVecIterator getLastFlight(const std::string &ref) { return flights[ref].end(); }
|
FGScheduledFlightVecIterator getLastFlight(const std::string &ref) { return flights[ref].end(); }
|
||||||
};
|
};
|
||||||
|
|
|
@ -72,6 +72,8 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "view"; }
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// Part 2: user settings.
|
// Part 2: user settings.
|
||||||
|
|
|
@ -63,6 +63,9 @@ public:
|
||||||
void unbind() override;
|
void unbind() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "panel"; }
|
||||||
|
|
||||||
// transfer pointer ownership!!!
|
// transfer pointer ownership!!!
|
||||||
virtual void addInstrument (FGPanelInstrument * const instrument);
|
virtual void addInstrument (FGPanelInstrument * const instrument);
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,9 @@ public:
|
||||||
void reinit() override;
|
void reinit() override;
|
||||||
void update(double dt) override;
|
void update(double dt) override;
|
||||||
|
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "panel-protocol"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SGPropertyNode_ptr root;
|
SGPropertyNode_ptr root;
|
||||||
SGIOChannel *io;
|
SGIOChannel *io;
|
||||||
|
|
|
@ -34,6 +34,9 @@
|
||||||
class FGReadablePanel : public FGPanel
|
class FGReadablePanel : public FGPanel
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
// Subsystem identification.
|
||||||
|
static const char* staticSubsystemClassId() { return "readable-panel"; }
|
||||||
|
|
||||||
static SGSharedPtr<FGPanel> read (SGPropertyNode_ptr root);
|
static SGSharedPtr<FGPanel> read (SGPropertyNode_ptr root);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue