From d9958c7710f04438cb3c9dcd0014915631d6f88a Mon Sep 17 00:00:00 2001 From: daveluff Date: Tue, 23 Sep 2003 15:02:12 +0000 Subject: [PATCH] Get rid of some cruft --- src/ATC/AILocalTraffic.cxx | 58 ++------------------------------------ 1 file changed, 2 insertions(+), 56 deletions(-) diff --git a/src/ATC/AILocalTraffic.cxx b/src/ATC/AILocalTraffic.cxx index d052bc5c7..ac4ed7075 100644 --- a/src/ATC/AILocalTraffic.cxx +++ b/src/ATC/AILocalTraffic.cxx @@ -295,66 +295,12 @@ void FGAILocalTraffic::FlyCircuits(int numCircuits, bool tag) { return; break; case TAXIING: - // For now we'll punt this and do nothing + // TODO - For now we'll punt this and do nothing break; case PARKED: circuitsToFly = numCircuits; // Note that one too many circuits gets flown because we only test and decrement circuitsToFly after landing // thus flying one too many circuits. TODO - Need to sort this out better! touchAndGo = tag; -#if 0 - // Get the active runway details (and copy them into rwy) - GetRwyDetails(); - - // Get the takeoff node for the active runway, get a path to it and start taxiing - path = ground->GetPath(ourGate, rwy.rwyID); - if(path.size() < 2) { - // something has gone wrong - SG_LOG(SG_ATC, SG_ALERT, "Invalid path from gate to theshold in FGAILocalTraffic::FlyCircuits\n"); - return; - } - /* - cout << "path returned was:" << endl; - for(unsigned int i=0; istruct_type) { - case NODE: - cout << "NODE " << ((node*)(path[i]))->nodeID << endl; - break; - case ARC: - cout << "ARC\n"; - break; - } - } - */ - // pop the gate - we're here already! - path.erase(path.begin()); - //path.erase(path.begin()); - /* - cout << "path after popping front is:" << endl; - for(unsigned int i=0; istruct_type) { - case NODE: - cout << "NODE " << ((node*)(path[i]))->nodeID << endl; - break; - case ARC: - cout << "ARC\n"; - break; - } - } - */ - - taxiState = TD_OUTBOUND; - StartTaxi(); - - // Maybe the below should be set when we get to the threshold and prepare for TO? - // FIXME TODO - pattern direction is still hardwired - patternDirection = -1; // Left - // At the bare minimum we ought to make sure it goes the right way at dual parallel rwy airports! - if(rwy.rwyID.size() == 3) { - patternDirection = (rwy.rwyID.substr(2,1) == "R" ? 1 : -1); - } - - Transform(); -#endif break; } } @@ -474,7 +420,7 @@ void FGAILocalTraffic::Update(double dt) { //cout << "^" << flush; Transform(); break; - case PARKED: + case PARKED: //cout << "In PARKED\n"; if(!elevInitGood) { DoGroundElev();