]> git.mxchange.org Git - flightgear.git/blobdiff - src/Systems/static.hxx
httpd: don't spam the console with debug messages
[flightgear.git] / src / Systems / static.hxx
index 0ed4058015428b582594afc54ab824218492e065..ccb30cafd9114f2706083bf464e5179de08cf21e 100644 (file)
@@ -1,6 +1,7 @@
 // static.hxx - the static air system.
 // Written by David Megginson, started 2002.
 //
+// Last modified by Eric van den Berg, 09 November 2013
 // This file is in the Public Domain and comes with no warranty.
 
 
@@ -11,8 +12,8 @@
 # error This library requires C++
 #endif
 
-#include <simgear/misc/props.hxx>
-#include <Main/fgfs.hxx>
+#include <simgear/props/props.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
 
 
 /**
  * Input properties:
  *
  * /environment/pressure-inhg
- * /systems/static[0]/serviceable
+ * /systems/"name"/serviceable
+ * /orientation/alpha-deg
+ * /orientation/side-slip-rad
+ * /velocities/mach
  *
  * Output properties:
  *
- * /systems/static[0]/pressure-inhg
+ * /systems/"name"/pressure-inhg
  *
- * TODO: support multiple static ports and specific locations
  * TODO: support alternate air with errors
  */
-class StaticSystem : public FGSubsystem
+class StaticSystem : public SGSubsystem
 {
 
 public:
 
-    StaticSystem ();
+    StaticSystem ( SGPropertyNode *node );
+    StaticSystem ( int i );
     virtual ~StaticSystem ();
 
     virtual void init ();
+    virtual void reinit ();
     virtual void bind ();
     virtual void unbind ();
     virtual void update (double dt);
 
 private:
 
+    std::string _name;
+    int _num;
+    double _tau;
+    double _error_factor;
+    int _type;
     SGPropertyNode_ptr _serviceable_node;
     SGPropertyNode_ptr _pressure_in_node;
     SGPropertyNode_ptr _pressure_out_node;
+    SGPropertyNode_ptr _beta_node;
+    SGPropertyNode_ptr _alpha_node;
+    SGPropertyNode_ptr _mach_node;
     
 };