]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/route_mgr.hxx
only lock AP automatically if above /autopilot/route-manager/min-lock-altitude-agl-ft
[flightgear.git] / src / Autopilot / route_mgr.hxx
index 924cab6905040276ecbcb46acb8c8bcf42d73eb6..22d373a3dfddb8cba63ee78c528c273072d47ee1 100644 (file)
@@ -64,6 +64,8 @@ private:
 
     // automatic outputs
     SGPropertyNode_ptr true_hdg_deg;
+    SGPropertyNode_ptr target_altitude_ft;
+    SGPropertyNode_ptr altitude_lock;
 
     SGPropertyNode_ptr wp0_id;
     SGPropertyNode_ptr wp0_dist;
@@ -89,6 +91,11 @@ private:
     SGPropertyNode_ptr input;
     Listener *listener;
     SGPropertyNode_ptr mirror;
+    bool altitude_set;
+
+    int make_waypoint( SGWayPoint **wp, string& target );
+    void update_mirror();
+    bool near_ground();
 
 public:
 
@@ -115,7 +122,6 @@ public:
         return route->size();
     }
 
-    void update_mirror();
 };