Hello: I am working working with the Ignition Gazebo variant of ardupilot_gazebo adding support for the new Buoyancy, Hydrodynamics and Thruster plugins.
I have it working in SITL – but the startup is a bit rough. The first ~500 frames appearing on port 9002 have these values:
[1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000, 1000]
After ~500 or so frames they suddenly switch to the expected values:
[1500, 1500, 1500, 1500, 1500, 1500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
What this means is that the sub goes nuts for a few seconds until the pwm values land at 1500. My workaround for now is to ignore any packets where the pwm values are <= servo_min (1100).
Is this a bug in ArduSub, or some parameter that I can tweak? Or perhaps it’s just a known behavior that doesn’t really affect any other system.
Thanks,
/Clyde
P.S. – I uploaded the (very rough) underwater.world and bluerov2/model.sdf files here: GitHub - clydemcqueen/bluerov2_ignition: BlueROV2 model for Ignition Gazebo