]> git.mxchange.org Git - flightgear.git/commitdiff
Fix turn entry path position computation.
authorJames Turner <zakalawe@mac.com>
Sat, 3 Jan 2015 00:29:07 +0000 (00:29 +0000)
committerJames Turner <zakalawe@mac.com>
Sat, 3 Jan 2015 00:29:07 +0000 (00:29 +0000)
src/Navaids/routePath.cxx

index 086b25d6d29c2b21c95223544f3028414f5e4e1a..e5d86e63ee09bc2054b7c7def70c9a4a4a3e4ff3 100644 (file)
@@ -365,7 +365,7 @@ public:
     double theta = (distanceM / turnRadius) * SG_RADIANS_TO_DEGREES;
     theta = copysign(theta, turnAngle);
     double p = copysign(90, turnAngle);
-    double course = legCourseTrue - turnAngle + theta;
+    double course = legCourseTrue + theta;
     return SGGeodesy::direct(turnCenter, course - p, turnRadius);
   }