Skip to content

Commit

Permalink
Handle scenario when polar contains NaN value
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-rosset committed Jul 5, 2024
1 parent cd17ce0 commit 311a35e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/RouteMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,8 +867,6 @@ bool Position::Propagate(IsoRouteList &routelist, RouteMapConfiguration &configu
d2 *= cos(deg2rad(dlat))/2; // correct for latitude
bearing = rad2deg(atan2(d2, d1));

//double bearing, dist2end;
//ll_gc_ll_reverse(configuration.EndLat, configuration.EndLon, lat, lon, &bearing, &dist2end);
if(fabs(heading_resolve(configuration.StartEndBearing - bearing)) > configuration.MaxCourseAngle)
continue;
}
Expand Down

0 comments on commit 311a35e

Please sign in to comment.