# AltIMU-10 V5 Roll,pitch and yaw value problems

**URL:** https://forum.pololu.com/t/altimu-10-v5-roll-pitch-and-yaw-value-problems/16122
**Category:** Sensors
**Created:** [November 25, 2018, 10:07pm UTC](https://forum.pololu.com/t/altimu-10-v5-roll-pitch-and-yaw-value-problems/16122 "2018-11-25T22:07:28Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Jim\_Remington](https://forum.pololu.com/letter_avatar_proxy/v4/letter/j/a3d4f5/32.png) [@Jim\_Remington](https://forum.pololu.com/u/Jim_Remington)
#### Post date: [November 25, 2018, 10:19pm UTC](https://forum.pololu.com/t/altimu-10-v5-roll-pitch-and-yaw-value-problems/16122/2 "2018-11-25T22:19:41Z")

</div>

The symptoms you report suggest that you need to use a better calibration procedure for the magnetometer, but calibrating the accelerometer might also help. See this forum post

> [@Correcting the Balboa magnetometer](https://forum.pololu.com/t/correcting-the-balboa-magnetometer/14315):
>
> Balboa appears to be an extremely well engineered robot – nice job, folks! However, a few tests, shown below, reveal that the magnetometer is subject to severe hard iron distortion, perhaps due to the vicinity of the battery casings (I’m using alkaline AAs in my early tests and haven’t tried any others yet). Fortunately, this situation can be fixed. The basic test is simple: just hold the robot in the air and wave it around, covering as many 3D points as possible, while outputting the raw mag…

---

_[View the full topic](https://forum.pololu.com/t/altimu-10-v5-roll-pitch-and-yaw-value-problems/16122)._
