double heading = ac->getTrafficRef()->getCourse();
apt->getDynamics()->getActiveRunway(rwyClass, 1, activeRunway,
heading);
- rwy = apt->getRunwayByIdent(activeRunway);
}
+ rwy = apt->getRunwayByIdent(activeRunway);
+
+
double airportElev = apt->getElevation();
// Acceleration point, 105 meters into the runway,
fgSetDouble("/instrumentation/comm[0]/frequencies/selected-mhz", ((double) stationFreq / 100.0));
leg = 4;
string fltType = "ga";
+ fp->setRunway(runway);
fp->createTakeOff(&ai_ac, false, apt, 0, fltType);
} else {
controller = apt->getDynamics()->getStartupController();