]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATCDCL/ground.hxx
Remove confusing default (missing) path from 2D panel code.
[flightgear.git] / src / ATCDCL / ground.hxx
index a94e3f252c233a90ab332c293efefc84905f28da..3457874758a72126573bad279f9f529076b4bc96 100644 (file)
@@ -25,9 +25,8 @@
 #include <vector>
 #include <list>
 
-#include <simgear/math/point3d.hxx>
+#include <simgear/math/SGMath.hxx>
 #include <simgear/misc/sgstream.hxx>
-#include <simgear/math/sg_geodesy.hxx>
 #include <simgear/props/props.hxx>
 
 #include "ATC.hxx"
@@ -35,7 +34,6 @@
 
 #include <string>
 
-class FGAIEntity;
 class FGATCMgr;
 
 //////////////////////////////////////////////////////
@@ -96,8 +94,8 @@ struct node : public ground_network_element {
        ~node();
        
        unsigned int nodeID;    //each node in an airport needs a unique ID number - this is ZERO-BASED to match array position
-       Point3D pos;
-       Point3D orthoPos;
+       SGGeod pos;
+       SGVec3d orthoPos;
        std::string name;
        node_type type;
        arc_array_type arcs;
@@ -177,15 +175,12 @@ typedef shortest_path_map_type::iterator shortest_path_map_iterator;
 // Planes active within the ground network.
 
 // A more specialist plane rec to include ground information
-struct GroundRec {
-       FGAIEntity* planePtr;   // This might move to the planeRec eventually
-       
+struct GroundRec {     
     PlaneRec plane;
-    Point3D current_pos;
     node* destination;
     node* last_clearance;
-       bool taxiRequestOutstanding;    // Plane has requested taxi and we haven't responded yet
-       double clearanceCounter;                // Hack for communication timing - counter since clearance requested in seconds 
+    bool taxiRequestOutstanding;       // Plane has requested taxi and we haven't responded yet
+    double clearanceCounter;           // Hack for communication timing - counter since clearance requested in seconds 
        
     bool cleared;  // set true when the plane has been cleared to somewhere
     bool incoming; //true for arrivals, false for departures
@@ -197,19 +192,6 @@ typedef std::list < GroundRec* > ground_rec_list;
 typedef ground_rec_list::iterator ground_rec_list_itr;
 typedef ground_rec_list::const_iterator ground_rec_list_const_itr;
 
-//////////////////////////////////////////////////////////////////////////////////////////
-
-// Hack
-// perhaps we could use an FGRunway instead of this
-struct GRunwayDetails {
-       Point3D threshold_pos;
-       Point3D end1ortho;      // ortho projection end1 (the threshold ATM)
-       Point3D end2ortho;      // ortho projection end2 (the take off end in the current hardwired scheme)
-       double hdg;             // true runway heading
-       double length;  // In *METERS*
-       std::string rwyID;
-};
-
 ///////////////////////////////////////////////////////////////////////////////
 //
 // FGGround
@@ -226,19 +208,6 @@ public:
     void Update(double dt);
        
        inline const std::string& get_trans_ident() { return trans_ident; }
-
-    // Contact ground control on arrival, assumed to request any gate
-    //void NewArrival(plane_rec plane);
-
-    // Contact ground control on departure, assumed to request currently active runway.
-    void RequestDeparture(const PlaneRec& plane, FGAIEntity* requestee);
-
-    // Contact ground control when the calling routine doesn't know if arrival
-    // or departure is appropriate.
-    //void NewContact(plane_rec plane);
-
-    // Make a request of ground control.
-    //void Request(ground_request request);
        
        // Randomly fill some of the available gates and GA parking spots with planes
        void PopulateGates();