Depth-Hold mode custom depth/altitude

Hello, I was trying to set the cutstom altitude using RC channels in depth hold mode and manual mode, however its pretty messy solution. Is there any kind of parameter that can change the target altitude in depth hold mode? I dont use guided mode since i need manual control over the robot with target depth/altitude dependant on sensory data.

Hi, check this gist

thanks for the response
It works! After publishing altitude on setpoint raw/global topic on MAVROS it works perfectly as i wanted it to!

1 Like

Since this has come up again, it’s worth noting that this is now an example in our pymavlink documentation, in a more readable and versatile form than the initial gist.

1 Like