I'm trying to build an self navigated robot using DUE and 10DOF IC (LSM9DSO) with 2 DC motors. I can get the values from 10DOF IC yaw, pitch, roll and heading angle from compass. I thought to use yaw angle to get the heading angle, my issue is, though the robot is in the same direction (physically) with different slope angles (different pitch and roll), the yaw angle keeps changing the value. I need to send the robot in same direction in slopes. If you can give me a suggestion/direction on how to send the robot on straight in slopes would be much appreciated
Really appreciate your suggestion. Some times compass angle tend to change due to external interferes and other magnetic fields, ex: motors. Is that possible to get the heading angle by gyro and accelerometer values? If so what would be the best start point? I tried to integrate gyro and accelerometer values but most of the examples are for roll and pitch (in complement filters etc).