-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Delayed safehome #6655
Delayed safehome #6655
Conversation
I tried this today with default setting and noticed that once the plane reached the safe home position the system messages displayed "diverting to safehome" and "loitering around home". I think it would be better to create one message "loitering around safehome" (if that fits on the osd, haven't checked). |
That is a good suggestion. I've made the changes. Can you give it another try? It's still not flying season here. |
Can you please rebase so we can merge this? |
I don't know how to do this. Is it documented somewhere? |
The easiest is probably to merge the current master branch into your branch and resolve all the conflicts. |
So:
|
Yes, that should be correct. |
@tonyyng I have resolved the merge conflicts. Is it okay if I push them to your branch? |
Sure |
# Conflicts: # docs/Settings.md # src/main/fc/settings.yaml # src/main/navigation/navigation.c
Great job @TonyYing, very useful PR! Not a big deal but I found the options a bit misleading but you might as well have some other considerations in mind of course. To me 'OFF' is ok, 'RTH' I undertsand only as the manual RTH and RTH_FS I see as both RTH + FS. Wouldn't be better RTH_FS (default, all) and FS_ONLY just for FS? |
Maybe, but as long as the behavior is documented accurately, I don't think it makes a difference, especially now that the changes have been merged. |
The following changes are in Safehomes v2:
By not replacing the arming location with the safehome until it is needed, it fixes the problems where the OSD elements involving home (distance, direction, etc) are those of the safehome instead of the arming location.
Also there are some potential safety checks that use "distance_to_home" that won't work as expected when the arming point has been replaced by the safehome.
Resolves these issues:
#6541 Safehome only use in FS state
#6617 Display telemetry from arming location, not safehome