]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/attitude_indicator.hxx
Make the AI models a bit more intelligent. The Gear should be extended and retracted...
[flightgear.git] / src / Instrumentation / attitude_indicator.hxx
index b75ccd317822d49ec138e30527899b21b305ac54..b71e742c21f188ee31668e98bb3c6afb75f66fc3 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"
 
@@ -26,6 +26,8 @@
  *
  * /instrumentation/attitude-indicator/config/tumble-flag
  * /instrumentation/attitude-indicator/serviceable
+ * /instrumentation/attitude-indicator/caged-flag
+ * /instrumentation/attitude-indicator/tumble-norm
  * /orientation/pitch-deg
  * /orientation/roll-deg
  * /systems/vacuum[0]/suction-inhg
@@ -34,8 +36,9 @@
  *
  * /instrumentation/attitude-indicator/indicated-pitch-deg
  * /instrumentation/attitude-indicator/indicated-roll-deg
+ * /instrumentation/attitude-indicator/tumble-norm
  */
-class AttitudeIndicator : public FGSubsystem
+class AttitudeIndicator : public SGSubsystem
 {
 
 public:
@@ -52,12 +55,14 @@ private:
 
     Gyro _gyro;
 
-    double _tumble;
-
     SGPropertyNode_ptr _tumble_flag_node;
+    SGPropertyNode_ptr _caged_node;
+    SGPropertyNode_ptr _tumble_node;
     SGPropertyNode_ptr _pitch_in_node;
     SGPropertyNode_ptr _roll_in_node;
     SGPropertyNode_ptr _suction_node;
+    SGPropertyNode_ptr _pitch_int_node;
+    SGPropertyNode_ptr _roll_int_node;
     SGPropertyNode_ptr _pitch_out_node;
     SGPropertyNode_ptr _roll_out_node;