I'm using HMC5883L compass module with arduino. There is a strange issue with the readings from this module - for some reason, the Z and Y axis are both affected from only Z axis movement or Y axis movement.
I need to get correct readings of the Z axis (compass) without/with minimal affect from the other axis changes
Y = tilting nose up/down
Z = turning left/right (compass)
I tried several libraries, the last two from these links:
impeham:
I'm using HMC5883L compass module with arduino. There is a strange issue with the readings from this module - for some reason, the Z and Y axis are both affected from only Z axis movement or Y axis movement.
You can do a similar calculation using, say, XAxis and Zaxis for up/down angle.
Yours,
TonyWilk
Thanks - yes - i did try the HMC5883L_compass.ino sketch and changed the magnetic declination according to my location, but the roll and pitch are heavily affecting the heading - i need heading to be as clear as possible from the other movements.