Removal of some debugging statements.
This commit is contained in:
parent
209c2c9503
commit
449675deca
2 changed files with 10 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
/******************************************************************************
|
/****************************************************************************
|
||||||
* AIFlightPlanCreatePushBack.cxx
|
* AIFlightPlanCreatePushBack.cxx
|
||||||
* Written by Durk Talsma, started August 1, 2007.
|
* Written by Durk Talsma, started August 1, 2007.
|
||||||
*
|
*
|
||||||
|
@ -157,7 +157,7 @@ bool FGAIFlightPlan::createPushBack(FGAIAircraft *ac,
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
double distance = (*ts)->getLength();
|
double distance = (*ts)->getLength();
|
||||||
cerr << "Length of push forward route = " << distance << " and heading is " << heading << endl;
|
//cerr << "Length of push forward route = " << distance << " and heading is " << heading << endl;
|
||||||
lat2 = tn->getLatitude();
|
lat2 = tn->getLatitude();
|
||||||
lon2 = tn->getLongitude();
|
lon2 = tn->getLongitude();
|
||||||
|
|
||||||
|
@ -167,15 +167,15 @@ bool FGAIFlightPlan::createPushBack(FGAIAircraft *ac,
|
||||||
char buffer[16];
|
char buffer[16];
|
||||||
snprintf(buffer, 16, "pushback-%02d", i);
|
snprintf(buffer, 16, "pushback-%02d", i);
|
||||||
SGGeod coord = coord.fromDeg(lon2, lat2);
|
SGGeod coord = coord.fromDeg(lon2, lat2);
|
||||||
cerr << i << endl;
|
//cerr << i << endl;
|
||||||
FGAIWaypoint *wpt = createOnGround(ac, string(buffer), coord, dep->getElevation(), vTaxiReduced);
|
FGAIWaypoint *wpt = createOnGround(ac, string(buffer), coord, dep->getElevation(), vTaxiReduced);
|
||||||
|
|
||||||
wpt->setRouteIndex((*ts)->getIndex());
|
wpt->setRouteIndex((*ts)->getIndex());
|
||||||
waypoints.push_back(wpt);
|
waypoints.push_back(wpt);
|
||||||
}
|
}
|
||||||
cerr << "Done " << endl;
|
// cerr << "Done " << endl;
|
||||||
waypoints.back()->setName(string("PushBackPoint"));
|
waypoints.back()->setName(string("PushBackPoint"));
|
||||||
cerr << "Done assinging new name" << endl;
|
// cerr << "Done assinging new name" << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -190,16 +190,16 @@ void FGATCManager::update ( double time ) {
|
||||||
// //cerr << "setting intentions " ;
|
// //cerr << "setting intentions " ;
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
// int val = fp->getRouteIndex(i);
|
// int val = fp->getRouteIndex(i);
|
||||||
cerr << fp->getWayPoint(i)->getName() << " ";
|
//cerr << fp->getWayPoint(i)->getName() << " ";
|
||||||
//if ((val) && (val != pos)) {
|
//if ((val) && (val != pos)) {
|
||||||
//intentions.push_back(val);
|
//intentions.push_back(val);
|
||||||
//cerr << "[done ] " << endl;
|
//cerr << "[done ] " << endl;
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cerr << "[done ] " << endl;
|
//cerr << "[done ] " << endl;
|
||||||
if (fp) {
|
if (fp) {
|
||||||
cerr << "Currently at leg : " << fp->getLeg() << endl;
|
//cerr << "Currently at leg : " << fp->getLeg() << endl;
|
||||||
}
|
}
|
||||||
double longitude = fgGetDouble("/position/longitude-deg");
|
double longitude = fgGetDouble("/position/longitude-deg");
|
||||||
double latitude = fgGetDouble("/position/latitude-deg");
|
double latitude = fgGetDouble("/position/latitude-deg");
|
||||||
|
@ -215,10 +215,10 @@ void FGATCManager::update ( double time ) {
|
||||||
controller = ai_ac.getATCController();
|
controller = ai_ac.getATCController();
|
||||||
currentATCDialog->update(time);
|
currentATCDialog->update(time);
|
||||||
if (controller) {
|
if (controller) {
|
||||||
cerr << "name of previous waypoint : " << fp->getPreviousWaypoint()->getName() << endl;
|
//cerr << "name of previous waypoint : " << fp->getPreviousWaypoint()->getName() << endl;
|
||||||
|
|
||||||
//cerr << "Running FGATCManager::update()" << endl;
|
//cerr << "Running FGATCManager::update()" << endl;
|
||||||
cerr << "Currently under control of " << controller->getName() << endl;
|
//cerr << "Currently under control of " << controller->getName() << endl;
|
||||||
controller->updateAircraftInformation(ai_ac.getID(),
|
controller->updateAircraftInformation(ai_ac.getID(),
|
||||||
latitude,
|
latitude,
|
||||||
longitude,
|
longitude,
|
||||||
|
|
Loading…
Reference in a new issue