// Check lat/lon values during initialization;
void FGAIFlightPlan::create(FGAirport *dep, FGAirport *arr, int legNr, double alt, double speed,
double latitude, double longitude, bool firstFlight,
- double radius, string fltType, string aircraftType, string airline)
+ double radius, const string& fltType, const string& aircraftType, const string& airline)
{
int currWpt = wpt_iterator - waypoints.begin();
switch(legNr)
double latitude,
double longitude,
double radius,
- string fltType,
- string aircraftType,
- string airline)
+ const string& fltType,
+ const string& aircraftType,
+ const string& airline)
{
double heading;
double lat;
* createCreate Taxi.
* initialize the Aircraft at the parking location
******************************************************************/
-void FGAIFlightPlan::createTaxi(bool firstFlight, int direction, FGAirport *apt, double latitude, double longitude, double radius, string fltType, string acType, string airline)
+void FGAIFlightPlan::createTaxi(bool firstFlight, int direction, FGAirport *apt, double latitude, double longitude, double radius, const string& fltType, const string& acType, const string& airline)
{
double wind_speed;
double wind_heading;
// "NOTE: this is currently fixed to "com" for commercial traffic
// Should be changed to be used dynamically to allow "gen" and "mil"
// as well
- apt->getActiveRunway("com", 1, &activeRunway);
+ apt->getActiveRunway("com", 1, activeRunway);
if (!(globals->get_runways()->search(apt->getId(),
activeRunway,
&rwy)))
exit(1);
}
//string test;
- //apt->getActiveRunway(string("com"), 1, &test);
+ //apt->getActiveRunway(string("com"), 1, test);
//exit(1);
heading = rwy._heading;
// "NOTE: this is currently fixed to "com" for commercial traffic
// Should be changed to be used dynamically to allow "gen" and "mil"
// as well
- //apt->getActiveRunway("com", 1, &name);
+ //apt->getActiveRunway("com", 1, name);
//if (!(globals->get_runways()->search(apt->getId(),
// name,
// &rwy)))
// exit(1);
// }
//string test;
- //apt->getActiveRunway(string("com"), 1, &test);
+ //apt->getActiveRunway(string("com"), 1, test);
//exit(1);
//heading = rwy._heading;
// "NOTE: this is currently fixed to "com" for commercial traffic
// Should be changed to be used dynamically to allow "gen" and "mil"
// as well
- apt->getActiveRunway("com", 1, &activeRunway);
+ apt->getActiveRunway("com", 1, activeRunway);
if (!(globals->get_runways()->search(apt->getId(),
activeRunway,
&rwy)))
exit(1);
}
//string test;
- //apt->getActiveRunway(string("com"), 1, &test);
+ //apt->getActiveRunway(string("com"), 1, test);
//exit(1);
}
// "NOTE: this is currently fixed to "com" for commercial traffic
// Should be changed to be used dynamically to allow "gen" and "mil"
// as well
- apt->getActiveRunway("com", 1, &activeRunway);
+ apt->getActiveRunway("com", 1, activeRunway);
if (!(globals->get_runways()->search(apt->getId(),
activeRunway,
&rwy)))
exit(1);
}
//string test;
- //apt->getActiveRunway(string("com"), 1, &test);
+ //apt->getActiveRunway(string("com"), 1, test);
//exit(1);
}
//string name;
// should be changed dynamically to allow "gen" and "mil"
- arr->getActiveRunway("com", 2, &activeRunway);
+ arr->getActiveRunway("com", 2, activeRunway);
if (!(globals->get_runways()->search(arr->getId(),
activeRunway,
&rwy)))
exit(1);
}
//string test;
- //arr->getActiveRunway(string("com"), 1, &test);
+ //arr->getActiveRunway(string("com"), 1, test);
//exit(1);
//cerr << "Altitude = " << alt << endl;
//Beginning of Decent
//string name;
// allow "mil" and "gen" as well
- apt->getActiveRunway("com", 2, &activeRunway);
+ apt->getActiveRunway("com", 2, activeRunway);
if (!(globals->get_runways()->search(apt->getId(),
activeRunway,
&rwy)))
exit(1);
}
//string test;
- //apt->getActiveRunway(string("com"), 1, &test);
+ //apt->getActiveRunway(string("com"), 1, test);
//exit(1);
//cerr << "Done" << endl;