# Depth hold gain

**URL:** <https://discuss.bluerobotics.com/t/depth-hold-gain/3587>\
**Category:** Blue Robotics Software\
**Created:** [October 19, 2018, 11:28am UTC](https://discuss.bluerobotics.com/t/depth-hold-gain/3587 "2018-10-19T11:28:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bovikarby](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@Bovikarby](https://discuss.bluerobotics.com/u/Bovikarby)\
**Post date:** [October 19, 2018, 11:28am UTC](https://discuss.bluerobotics.com/t/depth-hold-gain/3587/1 "2018-10-19T11:28:22Z")

</div>

Hi Forum

I have dived a number of times with my BR2 and it is working fine the only thing is that when operated in depth hold i can se that it travels a bit deeper and returns back to the set value. I seems that the gain is to high in the depth control loop. The situation when this is a problem is when operating very close to the bottom. I have not changed anything from default settings in PID controller for depth hold. Can anyone recommend how to adjust gain in depth hold mode ?

Med vänlig hälsning Bo

---

<div class="post-metadata">

**Author:** ![jwalser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jwalser/32/2234_2.png) [@jwalser](https://discuss.bluerobotics.com/u/jwalser)\
**Post date:** [November 7, 2018, 6:16pm UTC](https://discuss.bluerobotics.com/t/depth-hold-gain/3587/2 "2018-11-07T18:16:50Z")

</div>

The [parameters](https://www.ardusub.com/operators-manual/full-parameter-list.html) in question are POS\_Z\*, VEL\_Z\* and ACCEL\_Z\*, you can adjust those gains from the parameter menu, or enable advanced options in the application settings, and you will get a tuning page in the vehicle settings.

The behavior you are referring to is a suspect bug, we are working to resolve this.

[https://github.com/bluerobotics/ardusub/issues/167](https://github.com/bluerobotics/ardusub/issues/167)

---

<div class="post-metadata">

**Author:** ![Bovikarby](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@Bovikarby](https://discuss.bluerobotics.com/u/Bovikarby)\
**Post date:** [November 8, 2018, 3:33pm UTC](https://discuss.bluerobotics.com/t/depth-hold-gain/3587/3 "2018-11-08T15:33:04Z")

</div>

Hi Jacob  
Thanks for your answer. It make sense that there can be a bug in the control loop. At one occasion Rov did hit bottom and when trying to move up from bottom it was not possible to do that. When given the command to move up it did go down . I did have to go to manual control to be able to move up // Bo

---

<div class="post-metadata">

**Author:** ![jwalser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jwalser/32/2234_2.png) [@jwalser](https://discuss.bluerobotics.com/u/jwalser)\
**Post date:** [November 8, 2018, 5:25pm UTC](https://discuss.bluerobotics.com/t/depth-hold-gain/3587/4 "2018-11-08T17:25:01Z")

</div>

This sounds like a separate issue.
