Skip to content

AP_AdvancedFailsafe: option to not go back to the loss comm mission item if we are already in the return path #29961

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 1 commit into
base: master
Choose a base branch
from

Conversation

eppravitra
Copy link
Contributor

Currently, if there is a loss comm., the aircraft will always fly to the mission item specified with AFS_WP_COMMS.

I added an option so that if we have already passed AFS_WP_COMMS and got a loss. We should not go back to AFS_WP_COMMS.

This is useful, for example, if the aircraft is already in the landing sequence. If there is a loss during a landing attempt, it should just land instead of starting the landing sequence again.

I tested the change with Gazebo SITL.

@eppravitra
Copy link
Contributor Author

Thanks Peter. I have been super busy. I'll look into this.

@eppravitra
Copy link
Contributor Author

Hi @peterbarker ,

Please see the changes. I have a very specific case where I still require a direct comparison of mission item numbers. However, I have implemented what you suggested. There are now two options that can handle both cases.

Am I right that I should check for the return path instead of the landing sequence?

@eppravitra eppravitra changed the title AP_AdvancedFailsafe: option to not go back to the loss comm mission item if we already passed it AP_AdvancedFailsafe: option to not go back to the loss comm mission item if we already in the return path May 13, 2025
@eppravitra eppravitra changed the title AP_AdvancedFailsafe: option to not go back to the loss comm mission item if we already in the return path AP_AdvancedFailsafe: option to not go back to the loss comm mission item if we are already in the return path May 13, 2025
@eppravitra
Copy link
Contributor Author

Hi @peterbarker,

Please see my latest attempt.

@eppravitra
Copy link
Contributor Author

eppravitra commented May 14, 2025

@peterbarker ,
I did not follow everything exactly as you suggested, because, in some cases, it could lead to AFS not triggering in GUIDED

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