This only ran in simulation (Mega has an internal mission sim), but it shows the mission script hitting three waypoints and returning home to loiter. The mission scripts can be MUCH more complex.I'll post the code in the repository.
You can share this blog post in two ways…
Share this link:
Send it with your computer's email program: Email this