ricardozago / GY91-MPU9250-BMP280

Libraries for use with GY91 10 dof board (MPU9250, MPU9255 and BMP280).
56 stars 18 forks source link

magnetometer value #3

Open fn-code opened 4 years ago

fn-code commented 4 years ago

how to covert magnetometer x and y to degree ??

ricardozago commented 4 years ago

Could you share with us what you are doing?

With the information you provided, I would say to use the equations of the spherical coordinate system: https://en.wikipedia.org/wiki/Spherical_coordinate_system#Cartesian_coordinates