#endif
#include <simgear/props/props.hxx>
-
-#include <Main/fgfs.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
/**
*
* 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 ();
double _error_deg;
double _rate_degps;
+ string name;
+ int num;
+
SGPropertyNode_ptr _serviceable_node;
SGPropertyNode_ptr _heading_node;
SGPropertyNode_ptr _beta_node;