-
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
mission:reset mission after finished #13948
Conversation
@jinchengde one concern that came up is what happens in the case of a fixed wing abort landing? The fixed wing abort landing changes the mission index to the Do_Land_Start and also switches to Hold/Loiter mode above the landing location. Is that functionality still preserved by this PR? |
yes, Hold/Loiter mode above the landing location is still preserverd by this PR. the mission index change to the DO_LAND_START just effect if you reset the mission(switch the flight mode) |
This is how I understand it works now:
With this PR, when the use switches back to Mission mode after being in the abort loiter, does the vehicle keep the DO_LAND_START as the mission index (it should)? Possible edge case: what happens when the vehicle is landing, gets very close to the land waypoint and achieves/accepts the land waypoint, but the vehicle hasn't actually landed yet, then the user aborts the landing? |
Correct, vehicle will go to the DO_LAND_START if user switch back to MISSION mode.
|
As it works currently in Stable, if the vehicle disarms, it resets the mission. With your new PR, even if the vehicle stays armed and active after landing, if the final waypoint in the mission was "completed", it will also reset the mission upon re-entering Mission mode - is that correct? If so, I think that is good. |
Correct |
This seems like something good to discuss in the Dev Call since it potentially effects anyone who uses Mission mode. |
This might have been resolved by #14020. |
actually, this is about go around and approach again for fixed wing, I record the demo to help others understand this feature |
Now you guys both have me confused. I thought this this PR is just about reseting the mission from the start if re-entering mission mode when the mission has already been completed. |
yes, if the flight plan without landing pattern, the behaviour is reseting the mission from the start |
yes, but that feature is not part of this PR. that feature is already existing. This PR handles the case when the mission completes, but you are still "flying" (there are many of examples of when this could be the case). I'm not sure @julianoes comment applies. Does it?
|
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
@jinchengde Would you mind rebasing this again? And could you (sorry for asking again) explain the issue you are solving? |
vehicle could reset mission after mission finished, change the flight mode to others and back to mission mode, no need disarm, the mission will reset.
5565161
to
6b45ea4
Compare
@LorenzMeier
|
rebase #10288 @Antiheavy