]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/heading_indicator.hxx
Moved random ground cover object management code (userdata.[ch]xx) over
[flightgear.git] / src / Instrumentation / heading_indicator.hxx
index 6e414c9c4a2af4120b0a6fb5b2a9849e5be76fe7..908495adc39ee140d8387a1f61567fd1828146be 100644 (file)
 # error This library requires C++
 #endif
 
-#include <simgear/misc/props.hxx>
+#include <simgear/props/props.hxx>
+
 #include <Main/fgfs.hxx>
 
+#include "gyro.hxx"
+
 
 /**
  * Model a vacuum-powered heading indicator.
@@ -23,6 +26,7 @@
  * Input properties:
  *
  * /instrumentation/heading-indicator/serviceable
+ * /instrumentation/heading-indicator/spin
  * /instrumentation/heading-indicator/offset-deg
  * /orientation/heading-deg
  * /systems/vacuum[0]/suction-inhg
@@ -46,10 +50,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;