Stopping the ongoing mission

#1

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.

#2

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

#3

Thanks! i will try it.