- Mon Feb 16, 2015 12:58 pm
#179778
I'm trying to get the 9 degrees of Freedom Edison block (with LSM9DS0 sensor) to work acceptably and am having some problems: the magnetometer seems uncalibrated and I don't see easy ways to work around that.
Here's a plot of the X and Y values of the magnetometer while turning the device 360 degrees around z axis: If I use the normal atan (x/y) code to calculate heading from that, it'll be pretty bad... but applying a bias of ~65 to the X axis would make it pretty good.
Obviously I can use that plot to calibrate my own device manually, but let's assume I'm trying to create software that works on all Edisons. Should I consider the unit defective or have I missed something and there is a way to calibrate the magnetometer without user interaction (or alterntively a way to get useful heading data without calibration)?
Here's a plot of the X and Y values of the magnetometer while turning the device 360 degrees around z axis: If I use the normal atan (x/y) code to calculate heading from that, it'll be pretty bad... but applying a bias of ~65 to the X axis would make it pretty good.
Obviously I can use that plot to calibrate my own device manually, but let's assume I'm trying to create software that works on all Edisons. Should I consider the unit defective or have I missed something and there is a way to calibrate the magnetometer without user interaction (or alterntively a way to get useful heading data without calibration)?
You do not have the required permissions to view the files attached to this post.