]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/mag_compass.hxx
Boris Koenig:
[flightgear.git] / src / Instrumentation / mag_compass.hxx
index 61fb0064097d8c75ecfce23c9cf1a40b39a349ee..5bc176e0248e3239a63802b2fdb93dfbd750ad9d 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>
 
 
 /**
@@ -20,7 +20,7 @@
  *
  * Input properties:
  *
- * /instrumentation/magnetic-compass/serviceable
+ * /instrumentation/"name"/serviceable
  * /orientation/heading-deg
  * /orientation/beta-deg
  * /environment/magnetic-variation-deg
  *
  * Output properties:
  *
- * /instrumentation/magnetic-compass/indicated-heading-deg
+ * /instrumentation/"name"/indicated-heading-deg
  */
-class MagCompass : public FGSubsystem
+class MagCompass : public SGSubsystem
 {
 
 public:
 
+    MagCompass ( SGPropertyNode *node);
     MagCompass ();
     virtual ~MagCompass ();
 
@@ -49,6 +50,9 @@ private:
     double _error_deg;
     double _rate_degps;
 
+    string name;
+    int num;
+
     SGPropertyNode_ptr _serviceable_node;
     SGPropertyNode_ptr _heading_node;
     SGPropertyNode_ptr _beta_node;