]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATCDCL/AIMgr.hxx
Fix two bugs in the new autopilot code
[flightgear.git] / src / ATCDCL / AIMgr.hxx
index d08d6f56662794c2f5516efd05fdfea8f6fcd96d..8d87c5c981482bebb1c247d9a8e61649b0c849ff 100644 (file)
@@ -81,15 +81,12 @@ private:
        typedef ai_callsigns_map_type::iterator ai_callsigns_map_iterator;
        ai_callsigns_map_type ai_callsigns_used;
 
-    // Position of the Users Aircraft
-    double lon;
-    double lat;
-    double elev;
-    // Pointers to current users position
-    SGPropertyNode_ptr lon_node;
-    SGPropertyNode_ptr lat_node;
-    SGPropertyNode_ptr elev_node;
+  SGGeod _userAircraftPos;
 
+  // Pointers to current users position
+  SGPropertyNode_ptr lon_node;
+  SGPropertyNode_ptr lat_node;
+  SGPropertyNode_ptr elev_node;
 public:
 
     FGAIMgr();