Compass and Gyro Data

Hi everyone,

Is there any way we can collect directly compass and gyro data?

Or how can I calculate it if it is not collectible directly?

Thanks!

Hi @ugurdemirezen,

The magnetometer and gyroscope values are available in the SCALED_IMU2 MAVLink message (in the telemetry logs), or the MAG and GYR messages in the dataflash logs.

If you want the estimated vehicle rotations and orientation you can use the ATTITUDE and VFR_HUD.heading MAVlink messages, or ATT in the dataflash logs (not sure about heading).