Skip to content
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

AP_Mission: store mission items as variable length chunks #2391

Open
magicrub opened this issue Jun 9, 2015 · 2 comments
Open

AP_Mission: store mission items as variable length chunks #2391

magicrub opened this issue Jun 9, 2015 · 2 comments

Comments

@magicrub
Copy link
Contributor

magicrub commented Jun 9, 2015

Current, fixed size, scheme is wastes a lot of EEPROM/FRAM space and also does not even allow for all mavlink params to be stored. Since a lot of mission items contain unused space, this has the potential to store even more useful data while consuming less total memory.

cc @rmackay9 @tridge

@WickedShell
Copy link
Contributor

As long as we can export what the minimum/worst case scenario is. IE storing the most expensive waypoint type would allow X number of waypoints.

Also as a side note, while this is interesting, we would need a mechanism to inform the ground station how many way points could be stored. (Or teach the ground station how much space each waypoint type takes). IE right now I know that if I have an APM2 and upload more then 107 wp's I might be out of space and drop some, or on pixhawk if I have more then 700 waypoints I might drop some way points. At a mission planning stage this has to be accounted for, either in the GCS knowing how many waypoints can be stored, or in a clear mechanism to communicate that Y number of waypoints have been dropped. I have had multiple missions that simply didn't fit in the space, and since AP_Mission it has been gracefully, but silently handled, meaning that the only way to ensure the ground station knows what the mission looks like is to then read back the waypoints before every flight.

Actually, now that I've said that why isn't that the current behavior? If AP_Mission drops a waypoint for memory space then the GCS should be informed. (If this made it in within the last 6 months then I've just never noticed it)

@rmackay9
Copy link
Contributor

@WickedShell, I'm 99% sure that at least plane and copter correctly report back to the GCS a failure if they're unable to store the full list of mission commands received from the GCS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants