This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* LSM303AGR Compass Example | |
* | |
* From what I can gather, this shows the proper way to get a compas heading from the LSM303. | |
* It solves two problems which aren't addressed in the Adafruit example code: | |
* 1.) Show how to incorporate min and max values from calibration. Makes a HUGE difference in my testing. | |
* 2.) Take the z-axis into account. | |
* | |
* Based heavily off Adafruit example code and https://github.com/pololu/lsm303-arduino. | |
*/ |