LSM303AGR heading angle calculation problems.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-10-08 2:30 AM
Hi,
I'm trying to get the heading direction from the compass of LSM303AGR, I'm getting the X,Y,Z data and configured the compass and the accelerometer.
I just preform a atan2(y,x) function and not using any filtering or compensations. I wanted to see data that going around +-180 deg when spinning the compass and 180 deg different when i spin the compass to other direction. But i'm getting very strange reading and cant understand what is wrong.
Looking for advice :\
Attach the compass data, the Y,X raw from the compass (without the sensitivity adjustment) and the atan2 result.
0 REPLIES 0
