]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/newauto.hxx
The code to find the highest hit below you didn't work quite right when
[flightgear.git] / src / Autopilot / newauto.hxx
index 9e95c72780e588ddc639c0e2b011a2e1fab093b6..467847f1813a3c9e0dce54e15efe596760d1577d 100644 (file)
 
 
 #include <simgear/props/props.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
 #include <simgear/route/waypoint.hxx>
 
-#include <Main/fgfs.hxx>
 #include <Main/fg_props.hxx>
 
 // Structures
-class FGAutopilot : public FGSubsystem
+class FGAutopilot : public SGSubsystem
 {
 
 public:
@@ -85,6 +85,7 @@ private:
     double climb_error_accum;   // climb error accumulator (for GS)
     double speed_error_accum;   // speed error accumulator
 
+    double current_ap_throttle;  // current ap stored throttle setting used to set all engines
     double previous_speed;  // used to detect acceleration rate
 
     double TargetSlope;         // the glide slope hold value
@@ -165,7 +166,7 @@ public:
 
 \f
     ////////////////////////////////////////////////////////////////////
-    // Implementation of FGSubsystem.
+    // Implementation of SGSubsystem.
     ////////////////////////////////////////////////////////////////////
 
     void init ();