Hello, I have a Pixhawk 2.4.8 and a Raspberry Pi 5. I am using the MAVLink protocol to communicate between them and retrieve sensor values from the Pixhawk to the Raspberry Pi. While retrieving the pitch, roll, and yaw values, I do not encounter any issues with the pitch and roll values, but the yaw value keeps increasing. I have also performed the calibrations. What can I do to resolve this issue?
Hi @Mahmut37, welcome to the forum
Which autopilot firmware are you using? If you’re using ArduSub, updating to the latest beta firmware is expected to fix the yaw drift issues, assuming the sensors have been appropriately calibrated.
Note that both the compass and gyroscope affect the yaw estimate, and an incorrect gyroscope offset is often the cause of drifting yaw. If you’ve only calibrated the compass, try also calibrating the gyroscope (when the vehicle is resting on a stable surface).
The latest BlueOS beta has some advanced calibration options in the Vehicle Setup page, although BlueOS is not yet fully supported on Raspberry Pi 5.
Note that