We're trying to compute heading and having difficulty. Our application is to use the BerryIMU to do radio alignment in H-plane and V-plane. The Kalman filter always gives correct reading for tilt or V-Plane. It's the H-Plane[Imagine radio swinging about the vertical axis perpendicular to ground, and swinging sideways] calculations we're off.
Note the pitch or tilt are synonymous for us, the roll is where our application is different than an aircraft roll. Our roll implies swinging left to right when anchored vertically.
Could anyone please guide us whether compass tutorial is the right sample code to use? or is there some other way to achieve this using the sample code