Altitude hold and depth hold in pymavlink

Hello Jinkun,

Yes, that commit disabled it as we didn’t think it was good enough.

You can revert that commit and try to improve the behavior.

I’m afraid that not right now. SET_POSITION_TARGET_GLOBAL_INT and SET_POSITION_TARGET_LOCAL_NED Should be able to set a depth target, but they are only supported in Guided or Auto modes right now. It should be possible to add support for this message to Depth Hold too.

We recently worked on the depth hold controller to mitigate a behavior just like that. Are you running ArduSub 3.5.4?