qgroundcontrol icon indicating copy to clipboard operation
qgroundcontrol copied to clipboard

FlightMap: Fix drawing of very long mission lines

Open rubenp02 opened this issue 6 months ago • 0 comments

FlightMap: Fix drawing of very long mission lines

Description

This fixes a bug where extremely long legs in flight plans were drawn as straight lines on the map, instead of following the great circle path.

Key changes:

  • Break down mission legs longer than 50km into smaller segments that follow the great circle path based on accurate geodesic calculations.
  • Update leg arrow heading calculation to account for changing bearing along great circle paths.

Before/after

before-great-circle after-great-circle

Checklist:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

rubenp02 avatar Jun 05 '25 15:06 rubenp02