-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
[WIP] Add basic Rally/Safe Points in RTL #7743
Conversation
Looking really good. Also when manually switching RTL the Safe Point behavior might not always be the intended behavior. Also i believe QGC can add a RTL at the end of a mission if it does not contain a landing item, Safe Point would also not be the preferred behavior there. |
I'm also wondering if we need to distinguish this from explicitly returning to home and how it fits with user expectations for return. |
e6e67e8
to
4d1483d
Compare
@bkueng I think we should have two distinct behaviours: One option is to fly to a safe point on a new command or failsafe action (need to check if something exists in the MAVLink spec) and the other to treat all equal and to fly to a safe location. The very likely corner case being that you define safe points but the user is expecting RTL to return the vehicle (like pulling on a leash), not landing it out there. RTL Is right now the only method of conveniently getting a vehicle back that is at the edge of VLOS flight. |
mavlink_log_critical is also output to console
There is some discussion here: mavlink/qgroundcontrol#5725 and here: #8116 about how this Safe/Rally point capability should be it's own mode and not part of "Return" mode. One benefit of this would be the user could select "Rally" or "Safespot"as a failsafe behavior for certain events and still select "Return" as failsafe behavior for other events. |
@bkueng do you have a plan to get back to this? Can we start by rebasing? @arwagoner FYI |
FYI: Rally Points are supported in QGC. They were tested with MockLink which supports all the new mission type protocol. |
I think we first need to clarify and agree on the behavior that we want and the use-cases. |
Sure. What about discussing this in a call? |
dev-call? |
I am usually not available at the time of the dev calls so that's why I was suggesting an extra one |
Ok, can you organize it? |
I was trying to use this branch as the basis for a failsafe feature I would like to develop, and checked out the branch, but cannot get it to build due to incompatibilities with submodules (SITL build). Is it possible to use this feature without having to do a complete rebase? Or is anyone working on rebasing this already? Thanks! |
You'd have to rebase. But feel free to create a new PR if you have it working, I'm not working on this. |
@bkueng is this still applicable? |
Yes, but the branch is just too outdated, so closing. |
This adds a basic implementation for Safe Points in RTL. If there are Safe Points, the vehicle will fly to the closest one (including the home position).
I decided to add it to RTL (versus the Landing mode in navigator), because the Landing is also used in failure cases such as GPS or global position loss.
@DonLakeFlyer I'll need QGC support to test this. From what I see the point upload is not enabled in mavlink/qgroundcontrol#5474 due to https://github.com/mavlink/qgroundcontrol/blob/master/src/MissionManager/RallyPointManager.cc#L42.
@dagar @sanderux