X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FATCDCL%2Fground.hxx;h=257ffdad86b3a5092266c9d36f441d23e3740dcd;hb=934ce52a235cda3827866f64a9af492f2ea1e63e;hp=de8348b87a7eec4bb836803cfb1cef1d467034c0;hpb=32e9505eedffe7f98de028513de8a809a366bd98;p=flightgear.git diff --git a/src/ATCDCL/ground.hxx b/src/ATCDCL/ground.hxx index de8348b87..257ffdad8 100644 --- a/src/ATCDCL/ground.hxx +++ b/src/ATCDCL/ground.hxx @@ -25,15 +25,14 @@ #include #include -#include +#include #include -#include #include #include "ATC.hxx" #include "ATCProjection.hxx" -#include STL_STRING +#include class FGAIEntity; class FGATCMgr; @@ -96,8 +95,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; @@ -178,14 +177,13 @@ typedef shortest_path_map_type::iterator shortest_path_map_iterator; // A more specialist plane rec to include ground information struct GroundRec { - FGAIEntity* planePtr; // This might move to the planeRec eventually + FGAIEntity* planePtr; // This might move to the planeRec eventually 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 +195,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