-
Notifications
You must be signed in to change notification settings - Fork 13.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
Fix mission check for init mission #22846
Conversation
f4d4709
to
4636069
Compare
Okay I've checked the state about requirement when to run the feasibility checker and when not (what is now in It would be nice to support planning missions offline or with a vehicle without GPS lock and still run the checks that are possible (e.g. by assuming that the vehicle position is at the planned Home), but this is for me a new feature request. |
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.
All good findings, and for me the right solutions. As you say probably not the last bugs in the logic but certainly a stab in the right direction.
Tested with VTOL: Works with: Found one corner case:
Here the Vehicle first arms, switches to Mission and then triggers the no valid mission failsafe, switches to return, waits and disarms |
Thanks for testing. Yeah, the check is not rerun on parameters change that is why the commander thinks the mission is feasible and switches to the mission. On mission activation however, the check is performed again, and thus, at this point it know that it is infeasible and shuts down again. I think we should address this later when we properly fix/refactor the check. I will only make a small change to make sure that the mission is rechecked on activation (currently depending on timing, you could change the parameter such that the mission is infeasible and still fly the mission). @sfuhrer for visibility |
Solved Problem
The mission feasibility checks could return a wrong result on startup for the loaded mission on the storage.
Solution
Changelog Entry
For release notes:
Alternatives
We really should decouple the feasibility check from the mission execution.
Test coverage
BE AWARE OF