Home        Store        Docs        Blog

Set target depth in Pixhawk using Pymavlink

pymavlink
ardusub

(Sakib Ahmed) #1

Hi,
I just started working on my AUV. I wanted to control it using python and pymavlink library.
How can make the rover stay at certain depth using the depth hold mode.
I can switch to “Stabilize” mode using pymavlink. But not in depth hold mode.

So, can anyone help to set the mode to “Depth Hold” and how to set the target depth


(Patrick José Pereira) #2

Hi Sakib,

You should be able to set “Depth Hold” mode, please check the ACK return to investigate the problem.
Also, you can check our pymavlink documentation for examples.


(Jacob) #3

Depth hold requires an external pressure sensor like the Bar30 to be connected. If the sensor is not detected, or there is some problem with it, you will not be allowed to use depth hold.