From 97ca43a52ac362438b2b98a364d735ed3390c9aa Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Wed, 7 Aug 2019 15:58:12 +0100 Subject: [PATCH] Correct description of getDistanceToGo() - this returns meters, not feet. Looking at the code it appears that it won't break anything to use the wrong units, so we'll just fx the documentation to make it clear its meters --- src/AIModel/AIFlightPlan.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/AIModel/AIFlightPlan.cxx b/src/AIModel/AIFlightPlan.cxx index 90c8d9e6e..98123991d 100644 --- a/src/AIModel/AIFlightPlan.cxx +++ b/src/AIModel/AIFlightPlan.cxx @@ -339,10 +339,7 @@ void FGAIFlightPlan::eraseLastWaypoint() wpt_iterator++; } - - - -// gives distance in feet from a position to a waypoint +// gives distance in meters from a position to a waypoint double FGAIFlightPlan::getDistanceToGo(double lat, double lon, FGAIWaypoint* wp) const{ return SGGeodesy::distanceM(SGGeod::fromDeg(lon, lat), wp->getPos()); }