Skip to content

Improve flight path calculation with loiter radius support #13024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Eureak-zon
Copy link

This commit implements the adjustCoordinatesForLoiterRadius() method to correctly calculate tangent points for flight paths connecting loiter circles. The implementation:

  • Handles connections between two loiter circles using proper tangent calculation
  • Supports connections between a point and a loiter circle
  • Adjusts display coordinates while preserving the original waypoint positions
  • Uses geometric calculations based on azimuth and distance between waypoints

image

This commit implements the adjustCoordinatesForLoiterRadius() method to correctly
calculate tangent points for flight paths connecting loiter circles. The implementation:

- Handles connections between two loiter circles using proper tangent calculation
- Supports connections between a point and a loiter circle
- Adjusts display coordinates while preserving the original waypoint positions
- Uses geometric calculations based on azimuth and distance between waypoints

This ensures correctly visualized flight paths when mission items include loiter commands.
@Eureak-zon
Copy link
Author

This change is based on my current understanding of QGC, though I realize it may not be an ideal solution.

@rubenp02
Copy link
Contributor

Haven't looked at the implementation yet but this was much needed!

@HTRamsey HTRamsey requested a review from DonLakeFlyer July 2, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants