Calculating Compass Bearing - using Honeywell Formula.
Posted: Sun Jan 04, 2015 3:08 am
Playing with mag parameters and I was researching how to calculate the Compass Bearing based on the mag.(x,y,z) values and I noticed that the firmware seems to be re-using the MPU-6050 code and could not see anything specific for MPU-9250.
The MPU-9250 spec sheet refers the magnetometer specs as AK8963, so I guess the MPU-9250 is really a MPU-6050 with an AK8963 added. (Which is probably why the MPU-9250 can use MPU-6050 code un-modified.)
I wanted to clarify the firmware's Magnetometer code, however. I see reference to a - there is no Honeywell chip according to the schematics - so I assume this is compatible with MPU-9250
So finally a question
,
Is the compass data good or do we have some more work to do in this space?
Can I use the Honeywell guide on calculating Compass Bearing with this data?
The MPU-9250 spec sheet refers the magnetometer specs as AK8963, so I guess the MPU-9250 is really a MPU-6050 with an AK8963 added. (Which is probably why the MPU-9250 can use MPU-6050 code un-modified.)
I wanted to clarify the firmware's Magnetometer code, however. I see reference to a
Code: Select all
imu.c(line 314): hmc5883lGetHeading(&mag.x, &mag.y, &mag.z);
So finally a question

Is the compass data good or do we have some more work to do in this space?
Can I use the Honeywell guide on calculating Compass Bearing with this data?