Auto heading mode without pitch and roll holding

Hi!
For using heading hold without the ROV fighting roll and pitch I can stop that by setting:
RAT_RLL_P, RAT_RLL_I, RAT_PIT_P and RAT_PIT_I to 0

Not easy wile piloting, is there a way to do that without trying to make a new mode myself? (puuuh)

Bo

Hi @Boko,

I’m afraid there is no truly practical way to do that… Maybe a pymavlink script?

Thanks @williangalvani for tip!
I took a journey in the pymavlink world and made a script to disable Roll and Pitch on BR2 6DOF.
One usage is when piloting close to silty bottoms, You do not want vertical thruster blows.
In case somebody want to use, I put modules at Github: GitHub - BoKoppel/BlueROV2: BlueROV modules.

Found two small issues in the site that helped me scripting: Pymavlink · GitBook

  1. The link to website for Mavlink common commands did not open:
    http://mavlink.org/messages/common

Instead I found: Messages (common) · MAVLink Developer Guide

  1. Info on Ardusub site:
    # Set parameter value
    # Set a parameter value TEMPORARILY to RAM. It will be reset to default on system reboot.

After setting parameter values to 0, they do not go to default after reboot.
I solved that by making 2 scripts: StabOff.py that sets Roll and Pitch off, StabOn.py that sets parameters back to original.