case 1:
retVal = createPushBack(ac, firstFlight, dep, latitude, longitude,
radius, fltType, aircraftType, airline);
- // Pregenerate the
- if (retVal) {
- waypoints.back()->setName( waypoints.back()->getName() + string("legend"));
- retVal = createTakeoffTaxi(ac, false, dep, radius, fltType, aircraftType, airline);
- }
+ // Pregenerate the taxi leg.
+ //if (retVal) {
+ // waypoints.back()->setName( waypoints.back()->getName() + string("legend"));
+ // retVal = createTakeoffTaxi(ac, false, dep, radius, fltType, aircraftType, airline);
+ //}
break;
case 2:
retVal = createTakeoffTaxi(ac, firstFlight, dep, radius, fltType,
break;
default:
//exit(1);
- SG_LOG(SG_INPUT, SG_ALERT,
+ SG_LOG(SG_AI, SG_ALERT,
"AIFlightPlan::create() attempting to create unknown leg"
" this is probably an internal program error");
}
&heading, &gateId,
radius, fltType,
acType, airline))) {
- SG_LOG(SG_INPUT, SG_WARN, "Could not find parking for a " <<
+ SG_LOG(SG_AI, SG_WARN, "Could not find parking for a " <<
acType <<
" of flight type " << fltType <<
" of airline " << airline <<
double heading, lat, lon;
aAirport->getDynamics()->getParking(gateId, &lat, &lon, &heading);
wpt =
- createOnGround(ac, "END", SGGeod::fromDeg(lon, lat), airportElev,
+ createOnGround(ac, "ENDtaxi", SGGeod::fromDeg(lon, lat), airportElev,
ac->getPerformance()->vTaxi());
pushBackWaypoint(wpt);
}
FGAIWaypoint *wpt;
- double aptElev = apt->getElevation();
+ //double aptElev = apt->getElevation();
double currElev = 0;
char buffer[12];
FGRunway * rwy = apt->getRunwayByIdent(activeRunway);
}*/
double rolloutDistance =
(vTouchdownMetric * vTouchdownMetric - vTaxiMetric * vTaxiMetric) / (2 * decelMetric);
- cerr << " touchdown speed = " << vTouchdown << ". Rollout distance " << rolloutDistance << endl;
+ //cerr << " touchdown speed = " << vTouchdown << ". Rollout distance " << rolloutDistance << endl;
int nPoints = 50;
for (int i = 1; i < nPoints; i++) {
snprintf(buffer, 12, "landing03%d", i);
pushBackWaypoint(wpt);
}
}
- cerr << "Done. " << endl;
+ //cerr << "Done. " << endl;
/*
//Runway Threshold
pushBackWaypoint(wpt);
wpt =
- createOnGround(ac, "END", SGGeod::fromDeg(lon, lat), aptElev,
+ createOnGround(ac, "END-Parking", SGGeod::fromDeg(lon, lat), aptElev,
vTaxiReduced);
pushBackWaypoint(wpt);
return true;