]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/heading_indicator.hxx
ignore resets for now because every z/Z key press would trigger a call to NOAA. We...
[flightgear.git] / src / Instrumentation / heading_indicator.hxx
index 6e414c9c4a2af4120b0a6fb5b2a9849e5be76fe7..75b1bc5c3c41493e149412a54dc9b87cd3aed067 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"
 
 
 /**
@@ -23,6 +25,7 @@
  * Input properties:
  *
  * /instrumentation/heading-indicator/serviceable
+ * /instrumentation/heading-indicator/spin
  * /instrumentation/heading-indicator/offset-deg
  * /orientation/heading-deg
  * /systems/vacuum[0]/suction-inhg
@@ -31,7 +34,7 @@
  *
  * /instrumentation/heading-indicator/indicated-heading-deg
  */
-class HeadingIndicator : public FGSubsystem
+class HeadingIndicator : public SGSubsystem
 {
 
 public:
@@ -46,10 +49,9 @@ public:
 
 private:
 
-    double _spin;
+    Gyro _gyro;
     double _last_heading_deg;
 
-    SGPropertyNode_ptr _serviceable_node;
     SGPropertyNode_ptr _offset_node;
     SGPropertyNode_ptr _heading_in_node;
     SGPropertyNode_ptr _suction_node;