]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/turn_indicator.hxx
Fix a dumb bug in NavDisplay text-enable.
[flightgear.git] / src / Instrumentation / turn_indicator.hxx
index e730f74765e8dcca120f63be2fc2fa6ce27a4613..04a8e6fcb10132a5d1968265629d42d5148aada3 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>
 
 #include "gyro.hxx"
 
  *
  * Input properties:
  *
- * /instrumentation/turn-indicator/serviceable
- * /instrumentation/turn-indicator/spin
+ * /instrumentation/"name"/serviceable
+ * /instrumentation/"name"/spin
  * /orientation/roll-rate-degps
  * /orientation/yaw-rate-degps
  * /systems/electrical/outputs/turn-coordinator
  *
  * Output properties:
  *
- * /instrumentation/turn-indicator/indicated-turn-rate
+ * /instrumentation/"name"/indicated-turn-rate
  */
-class TurnIndicator : public FGSubsystem
+class TurnIndicator : public SGSubsystem
 {
 
 public:
 
-    TurnIndicator ();
+    TurnIndicator ( SGPropertyNode *node );
     virtual ~TurnIndicator ();
 
     virtual void init ();
@@ -53,6 +53,9 @@ private:
     Gyro _gyro;
     double _last_rate;
 
+    std::string _name;
+    int _num;
+
     SGPropertyNode_ptr _roll_rate_node;
     SGPropertyNode_ptr _yaw_rate_node;
     SGPropertyNode_ptr _electric_current_node;