wpt->gear_down = wpt_node->getBoolValue("gear-down", false);
wpt->flaps_down= wpt_node->getBoolValue("flaps-down", false);
wpt->on_ground = wpt_node->getBoolValue("on-ground", false);
- wpt->wait_time = wpt_node->getDoubleValue("wait-time-sec", 0);
+ wpt->time_sec = wpt_node->getDoubleValue("time-sec", 0);
+ wpt->time = wpt_node->getStringValue("time", "");
if (wpt->name == "END") wpt->finished = true;
else wpt->finished = false;
leg = 4;
else if (timeDiff >= 2000)
leg = 5;
-
- //cerr << "Set leg to : " << leg << endl;
+
+ SG_LOG(SG_GENERAL, SG_INFO, "Route from " << dep->getId() << " to " << arr->getId() << ". Set leg to : " << leg);
wpt_iterator = waypoints.begin();
create(dep,arr, leg, alt, speed, lat, lon,
firstLeg, radius, fltType, acType, airline);
FGAIFlightPlan::~FGAIFlightPlan()
{
deleteWaypoints();
- if (taxiRoute)
- delete taxiRoute;
+ delete taxiRoute;
}
}
else
wpt_iterator++;
+
}
// gives distance in feet from a position to a waypoint
void FGAIFlightPlan::deleteTaxiRoute()
{
- if (taxiRoute)
- delete taxiRoute;
+ delete taxiRoute;
taxiRoute = 0;
}