Stopping the ongoing mission

Is there any way to stop the ongoing mission?

I saw the fly_mission example, it looks like the only way to stop mission is using subscribe_progress callback function when another mission getting started.

So i wonder is dronecode SDK can stop the ongoing mission.

So subscribe_progress only “starts” or “stops” the updates to the callback that you register. The mission itself can be stopped aka paused with: https://github.com/Dronecode/DronecodeSDK/blob/develop/plugins/mission/include/plugins/mission/mission.h#L151-L161

Thanks! i will try it.