Home        Store        Docs        Blog

Depth Sensor Error - When operating in Depth Hold Mode

(Oystein Skarholm) #1

I was diving the ROV in depth hold mode when this error occurred. Since the ROV is quite heavy (35Kg) I suspect that the inertia has role in the play. The ROV is slightly buoyant so when ascending, even slowly, the ROV wants to continue after upwards after letting the joystick go. The ROV then reacts as best it can to stop the accent, but due to the gain level this might take a couple of seconds. The error message then shows Depth Sensor Error and the ROV goes into manual and disarms.
By re arming the ROV and press depth hold flight mode again, everything is back to normal.
Is there any way you can rewrite the code to avoid this from happening ?

(Jacob) #2

This indicates a communication (ie physical) issue with the sensor. You might be sagging the voltage when you come out of the maneuver, or the connector might be loose. Check your wiring and any damage to the sensor.

No, this is the desirable behavior if there is a problem reading data from the sensor.

(Jacob) #3

Here’s the code if anyone’s interested: https://github.com/ArduPilot/ardupilot/blob/ArduSub-stable/ArduSub/failsafe.cpp#L85