]> git.mxchange.org Git - flightgear.git/commit
Bug 974, GPS exceptions at end-of-route.
authorJames Turner <jmt@Bishop.local>
Sat, 29 Dec 2012 13:45:27 +0000 (13:45 +0000)
committerJames Turner <jmt@Bishop.local>
Sat, 29 Dec 2012 13:45:27 +0000 (13:45 +0000)
commitd311045018450d5bbecc846c9dab0b496b51cff0
treed32ef9089e0c0a325b1dc5805422aa5a8d3bb6fe
parente9ecf4eb522a697149d8f21ba1de3795019ac98b
Bug 974, GPS exceptions at end-of-route.

One of the two route termination conditions was improperly handled, leading to bad leg/wpt indices and exceptions from the GPS code. Detect passing the final waypoint in a more robust way now.

Also fix the GPS code to avoid turn computation on the final leg.
src/Autopilot/route_mgr.cxx
src/Autopilot/route_mgr.hxx
src/Instrumentation/gps.cxx