ShutDown AutoPilot via Mavlink


I was wondering if it is possible to shut down the autopilot by sending a mavlink msg

During my research, I found the following msg: MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN

when using the parameter to reboot it works great but by switching to shut down nothing happens and it the FC acts as if it did not receive any cmd.

PS: i tested on 3DR SOLO and Pixhawk 1 and 2.

Thanks for your assistance

Why would you want to do this?

We are looking to make a system that would require the drone to do an autonomous flight and shuts down when it lands successfully.

Please define “shut down” here.

Via mavlink you can already disarm and “safe” (enable-safety-switch) the

What more do you want?

shut down as in the drone does not use anymore juice. What i mean is we need to save the battery for future uses so as soon as the flight is finished the drone should be powered off completely if that is even possible of course.

That’s not possible without additional hardware support on any autopilot I
can think of. It’s all doable - but it’s certainly not out of the box,
and implementing this message would only get you a small fraction of the
way there.

ok i got it

thanks :wink: