]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/heading_indicator.hxx
fix no-hole ladder (not that I think this mode will enjoy a long life)
[flightgear.git] / src / Instrumentation / heading_indicator.hxx
index 7941010fa8b3007133fd8554da2ef5e60c13d7f8..4ba772d22a93ddb11ba110e54046329f00f7aa26 100644 (file)
 # 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>
+
+#include "gyro.hxx"
 
 
 /**
  * Model a vacuum-powered heading indicator.
  *
- * This first, simple draft is hard-wired to vacuum pump #1.
- *
  * Input properties:
  *
- * /instrumentation/heading-indicator/serviceable
- * /instrumentation/heading-indicator/spin
- * /instrumentation/heading-indicator/offset-deg
+ * /instrumentation/"name"/serviceable
+ * /instrumentation/"name"/spin
+ * /instrumentation/"name"/offset-deg
  * /orientation/heading-deg
- * /systems/vacuum[0]/suction-inhg
+ * "vacuum_system"/suction-inhg
  *
  * Output properties:
  *
- * /instrumentation/heading-indicator/indicated-heading-deg
+ * /instrumentation/"name"/indicated-heading-deg
  */
-class HeadingIndicator : public FGSubsystem
+class HeadingIndicator : public SGSubsystem
 {
 
 public:
 
+    HeadingIndicator ( SGPropertyNode *node );
     HeadingIndicator ();
     virtual ~HeadingIndicator ();
 
@@ -47,10 +48,13 @@ public:
 
 private:
 
+    Gyro _gyro;
     double _last_heading_deg;
 
-    SGPropertyNode_ptr _serviceable_node;
-    SGPropertyNode_ptr _spin_node;
+    string name;
+    int num;
+    string vacuum_system;
+
     SGPropertyNode_ptr _offset_node;
     SGPropertyNode_ptr _heading_in_node;
     SGPropertyNode_ptr _suction_node;