ozzmaker / BerryIMU

Code related to BerryIMU
http://ozzmaker.com
181 stars 109 forks source link

Z Axis of accelero #16

Closed alfandinorasyid closed 5 years ago

alfandinorasyid commented 5 years ago

How do we know the AccZangle and the Kalman of Z axis?

mwilliams03 commented 5 years ago

The Gyro and Accelerometer cannot be used to get Z axis as the Z axis doesn't change do to gravity. What you are after is "yaw". The magnetometer used to get this reading. What you need is AHRS (attitude and heading reference system) code. There is plenty of AHRS code on the internet that works with the LSM9DS1. Google "LMS9DS1 AHRS"

mwilliams03 commented 5 years ago

Not an issue with this code