-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Plane: fixed fence re-enable after fence breach #29730
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
Conversation
May as well update this to use the new enum value too. Line 34 in 5233716
|
allows for continue mission after fence breach with pilot command to change WP
done |
@@ -193,6 +203,11 @@ bool Plane::fence_stickmixing(void) const | |||
|
|||
bool Plane::in_fence_recovery() const | |||
{ | |||
if (control_mode == &mode_auto && !mission.get_in_landing_sequence_flag()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was surprised to see that on master we have a separate boolean for in_return_path()
- I think we might need a clause in here for that state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is tricky to see how that will work, the flag gets set even if we're not using RET_AUTOLAND=4
we'd need to check for the flag not being set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should say the current patches are a significant improvement and create an issue for this case, then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I think so
If after a fence breach the user commands a WP change to a WP not in the landing sequence in AUTO mode or disables and re-enables the fence then the fence should be re-activated