PX4/Firmware — pull request #1050 by DrTon (2014-06-09 14:16:45+00:00)
Title: mavlink: save mission on reboot

Includes work of @jean-m-cyr https://github.com/PX4/Firmware/pull/1048

Mavlink waypoints manager reworked:
- clearly separate current_dataman_id (temp storage for tranferring mission) and dataman_id (active mission)
- save active storage to SYSTEM_STATE dataman section
- count items in storage on init
- add terminator item to storage as last item to mark items list end
- debug messages cleanup (when _verbose = true)

Mission saving on reboots works stable, but need more testing, including reboots during mission transfer.

What should we do with current waypoint? Now it reset on reboot, that may be not cool. But how can we reset it when needed if we save it to dataman SYSTEM_STATE? Only from groundstation?