]> git.mxchange.org Git - flightgear.git/commitdiff
Fix acceleration path of default takeoff taxi.
authorJames Turner <zakalawe@mac.com>
Wed, 6 Jan 2016 23:58:24 +0000 (17:58 -0600)
committerJames Turner <zakalawe@mac.com>
Wed, 6 Jan 2016 23:58:24 +0000 (17:58 -0600)
src/AIModel/AIFlightPlanCreate.cxx

index b7a24ab1a2080a7c66f72c5179cc8be33f37fb0a..b396e280d2c154d6c503d8f6b9629753685932e4 100644 (file)
@@ -206,6 +206,13 @@ void FGAIFlightPlan::createDefaultTakeoffTaxi(FGAIAircraft * ac,
     wpt =
         createOnGround(ac, "Runway Takeoff", runwayTakeoff, airportElev,
                        ac->getPerformance()->vTaxi());
+
+    pushBackWaypoint(wpt);
+
+    // Acceleration point, 105 meters into the runway,
+    SGGeod accelPoint = aRunway->pointOnCenterline(105.0);
+    wpt = createOnGround(ac, "accel", accelPoint, airportElev,
+                         ac->getPerformance()->vRotate());
     pushBackWaypoint(wpt);
 }