Skip to content
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

Copter: RTL to rally point with Dijkstra's enabled should consider shortest flight path #28087

Open
rmackay9 opened this issue Sep 12, 2024 · 2 comments

Comments

@rmackay9
Copy link
Contributor

rmackay9 commented Sep 12, 2024

When Copter enter's RTL mode it checks whether it should return home or fly to a Rally point. That decision is based upon the horizontal distance from the vehicle to home and the rally points. Instead of using the direct distance it should use the length of the flight path to the point which, when using Dijkstra's, could be quite difference

Below is an illustration of a vehicle flying a mission to waypoint 3 after which an RTL command is executed. At this point the vehicle will attempt to fly to rally point 1 but Rally point 2 or home would be closer

copter-rally-dijkstras-pic

@Ryanf55
Copy link
Collaborator

Ryanf55 commented Sep 21, 2024

Can you share the fence file for this?

@rmackay9
Copy link
Contributor Author

@Ryanf55,

Sure, here is a zip file with the rally, fence and mission
rally-dijkstras-fence-rally-mission.zip

BTW I've created a branch here with some mostly working code

Here's a video of it in action
https://www.youtube.com/watch?v=nH_pnZ0FbP0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants