]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/vertical_speed_indicator.hxx
better use unset() for unsetting ...
[flightgear.git] / src / Instrumentation / vertical_speed_indicator.hxx
index b7d7755317aa3366b86ee4e1fa0e9e16ceb7ea6e..2b6a930d432a9c2dd285ac04f191e34bcd548024 100644 (file)
@@ -11,8 +11,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:
  *
- * /instrumentation/vertical-speed-indicator/serviceable
- * /systems/static[0]/pressure-inhg
+ * /instrumentation/"name"/serviceable
+ * "static_port"/pressure-inhg
  *
  * Output properties:
  *
- * /instrumentation/vertical-speed-indicator/indicated-speed-fpm
+ * /instrumentation/"name"/indicated-speed-fpm
  */
-class VerticalSpeedIndicator : public FGSubsystem
+class VerticalSpeedIndicator : public SGSubsystem
 {
 
 public:
 
-    VerticalSpeedIndicator ();
+    VerticalSpeedIndicator ( SGPropertyNode *node );
     virtual ~VerticalSpeedIndicator ();
 
     virtual void init ();
-    virtual void bind ();
-    virtual void unbind ();
     virtual void update (double dt);
 
 private:
 
     double _internal_pressure_inhg;
 
+    string _name;
+    int _num;
+    string _static_pressure;
+
     SGPropertyNode_ptr _serviceable_node;
     SGPropertyNode_ptr _pressure_node;
     SGPropertyNode_ptr _speed_node;