]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/heading_indicator.hxx
Quiet some log output.
[flightgear.git] / src / Instrumentation / heading_indicator.hxx
index 6e414c9c4a2af4120b0a6fb5b2a9849e5be76fe7..f340c05ddadc0aaa33b25f7e311c663ebffb9bf8 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/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 ();
 
     virtual void init ();
+    virtual void reinit ();
     virtual void bind ();
     virtual void unbind ();
     virtual void update (double dt);
 
 private:
 
-    double _spin;
+    Gyro _gyro;
     double _last_heading_deg;
 
-    SGPropertyNode_ptr _serviceable_node;
+    std::string _name;
+    int _num;
+    std::string _suction;
+
     SGPropertyNode_ptr _offset_node;
     SGPropertyNode_ptr _heading_in_node;
     SGPropertyNode_ptr _suction_node;
     SGPropertyNode_ptr _heading_out_node;
-    
+    SGPropertyNode_ptr _heading_bug_error_node;
+    SGPropertyNode_ptr _heading_bug_node;
+
 };
 
 #endif // __INSTRUMENTS_HEADING_INDICATOR_HXX