We ran into a strange problem today. We have successfully calibrated the compass and accelerometer.
Then we tested the stabilized mode and everything worked fine with no issues.
Today, however, the compass started to move in one direction continuously. Compass shows that although the robot is stationary, it is constantly turning left/right.
We changed the sd card of the raspberry after the calibration, does this cause a problem? But it has same version of ArduSub.
This has also been reported elsewhere but I’m not sure what causes it. I’m waiting on a response from the software team on how to fix/avoid the issue and will get back to you.
It might be about the firmware but our ROV is working with same firmware for months. And
when we run the pixhawk away from the electronics it works well. But when we mount it in the electronic part the compass breaks down.
If you want to check if it’s bcause noise or interference I can send you images of our electronic part with e-mail (because of privacy reasons).
Hi, this is usually caused by gyro bias. you can try running the Gyro Calibration. it is exposed in latest QGC (daily), in the sensors tab.
Or you can try setting it to calibrate every boot ( INS_GYR_CAL = 1), but that doesn’t work well when booting from a boat, for example.
Possibly a faulty gyroscope on the Pixhawk, as described in this recent topic? It may be useful if you’re able to provide a dataflash log and/or do your own log analysis to confirm if the behaviour is the same.