1
0
Fork 0

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

This commit is contained in:
legoboyvdlp R 2019-08-07 15:58:12 +01:00 committed by James Turner
parent 0132ddf7a1
commit 97ca43a52a

View file

@ -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());
}