if (!deptime)
deptime = (*flights.begin())->getDepartureTime();
FGScheduledFlightVecIterator i = flights.begin();
- SG_LOG (SG_GENERAL, SG_INFO,"Processing registration " << registration << " with callsign " << (*i)->getCallSign());
+ SG_LOG (SG_GENERAL, SG_DEBUG,"Processing registration " << registration << " with callsign " << (*i)->getCallSign());
if (AIManagerRef)
{
// Check if this aircraft has been released.
if (now > (*i)->getDepartureTime())
{
- //SGGeoc geoc = SGGeoc::fromCart(newPos);
- //lat = geoc.getLatitudeDeg();
- //lon = geoc.getLongitudeDeg();
-
- Point3D temp = sgCartToPolar3d(Point3D(newPos[0], newPos[1],newPos[2]));
- lat = temp.lat() * SG_RADIANS_TO_DEGREES;
- lon = temp.lon() * SG_RADIANS_TO_DEGREES;
-
+ SGGeoc geoc = SGGeoc::fromCart(newPos);
+ lat = geoc.getLatitudeDeg();
+ lon = geoc.getLongitudeDeg();
}
else
{