]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/altimeter.hxx
- fix unzoomed tapes (TODO: restore tick length)
[flightgear.git] / src / Instrumentation / altimeter.hxx
index 439a677d02daca2ca819b7095f7114a0c537e1fc..f75c207bdb2bc74d874209e2106d79f78f2851af 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>
 
 
 class SGInterpTable;
@@ -23,19 +23,20 @@ class SGInterpTable;
  *
  * Input properties:
  *
- * /instrumentation/altimeter/serviceable
- * /instrumentation/altimeter/setting-inhg
- * /systems/static[0]/pressure-inhg
+ * /instrumentation/"name"/serviceable
+ * /instrumentation/"name"/setting-inhg
+ * "static_port"/pressure-inhg
  *
  * Output properties:
  *
- * /instrumentation/altimeter/indicated-altitude-ft
+ * /instrumentation/"name"/indicated-altitude-ft
  */
-class Altimeter : public FGSubsystem
+class Altimeter : public SGSubsystem
 {
 
 public:
 
+    Altimeter (SGPropertyNode *node);
     Altimeter ();
     virtual ~Altimeter ();
 
@@ -44,6 +45,10 @@ public:
 
 private:
 
+    string name;
+    int num;
+    string static_port;
+
     SGPropertyNode_ptr _serviceable_node;
     SGPropertyNode_ptr _setting_node;
     SGPropertyNode_ptr _pressure_node;