-
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 feasibility fundamental problem (mavlink mission sync architecture) #12473
Comments
This is the crux of the problem from a fixed wing perspective. Unfortunately we have airplanes loitering around home until the battery runs out and it "lands" randomly into trees/crops/buildings around the Home location. Counting on the user (especially a new user) to properly upload a "feasible" mission isn't enough.
Some sort of double buffer or two memory (SDcard) slots for mission storage may be needed? |
This issue applies to VTOLs that wish to use a mission landing as well: |
@Antiheavy Was just looking into this. Either we create two mission files and only allow the actual mission file to be updated if the feasibility checks on the temporary ones pass. |
@dagar FYI |
@dagar From what I see mavlink_mission.cpp writes the mission directly to the SD card via dataman API. |
do you need to actually copy it? or can you have 2 mission slots and just declare which one is "active" and let the non-active one be open for overwriting? ... I'm no software architect so maybe i'm way off base... Either way, I'm supper excited to see this issue getting some attention! |
Another important point to consider: If RTL_TYPE=1 is selected and the user purposefully "clears the vehicle mission" via QGC or other, the RTL landing will be deleted. I wonder if completely clearing all valid missions during "flying" should be prevented somehow if certain RTL_TYPEs are selected? |
@RomanBapst any further thoughts on this? |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Still highly relevant. |
@RomanBapst What has to happen for this to move forward. Is it that you expect @Antiheavy to contribute the solution? If so, shouldn't it still be you who defines here the expected architectural change? |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
WIP placeholder, more detail coming.
#12464 (comment)
Before accepting a mission navigator requires that the feasibility checker accepts it. The problem is that the mission is already synced to the vehicle with the previous mission discarded before the feasibility is accessed. For example a plane with a valid mission (and planned landing sequence) could have an infeasible mission uploaded during operation, resulting in the vehicle no longer having a safe planned landing.
We need to structure things such that the valid mission is kept and only replaced by a new feasible mission.
The text was updated successfully, but these errors were encountered: