Hi,
I’m currently looking at buy a magnetometer and an accelerometer for my robot. But first, I’d like to know if I understand the concept correctly.
The accel would help me determine the tilt of my robot from front to back and right-left. I could then detect what kind of terrain it is on.
This would based on the fact that the y axis should always show 1g. And depending on the tilt, this value would be split over multiple axis.
But if the robot is moving, then I will see other accelerations on the axis so I will no longer be able to compute the tilt. Correct?
Also,
If I know the tilt, then I should be able to get an accurate magneto reading by projecting the 3 axis values of the magneto onto a plane that would be at parallel to the ground by using the angle of the tilt I got from the accellerometer. Is that how that works?