}
else
{
- cerr << "Unknown repeat period" << endl;
- exit(1);
+ repeatPeriod = 365*24*60*60;
+ SG_LOG( SG_GENERAL, SG_ALERT, "Unknown repeat period in flight plan "
+ "of flight '" << cs << "': " << rep );
}
// What we still need to do is preprocess the departure and
* until we have some AI models with traffic in the base package
*/
SGPath path = aircraftDir;
- path.append("/Traffic/fgtraffic.xml");
+ path.append("Traffic/fgtraffic.xml");
readXML(path.str(),*this);
- aircraftDir.append("AI/Aircraft/");
+ aircraftDir.append("AI/Aircraft");
if (aircraftDir.exists())
{
if((d = ulOpenDir(aircraftDir.c_str())) == NULL)
//cerr << "Done initializing schedules" << endl;
}
-void FGTrafficManager::update(double something)
+void FGTrafficManager::update(double /*dt*/)
{
//SG_LOG( SG_GENERAL, SG_INFO, "Running TrafficManager::Update() ");
if (runCount < 1000)
runCount++;
return;
}
+ runCount = 0;
time_t now = time(NULL) + fgGetLong("/sim/time/warp");
if (scheduledAircraft.size() == 0) {
//SG_LOG( SG_GENERAL, SG_INFO, "Returned Running TrafficManager::Update() ");
{
// after proper initialization, we shouldnt get here.
// But let's make sure
- cerr << "Failed to update aircraft schedule in traffic manager" << endl;
+ SG_LOG( SG_GENERAL, SG_ALERT, "Failed to update aircraft schedule in traffic manager");
}
currAircraft++;
//SG_LOG( SG_GENERAL, SG_INFO, "Done Running TrafficManager::Update() ");