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