Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hmc5883l: Fixed invalid type cast, added features and extended example #12

Merged
merged 2 commits into from
Nov 19, 2014
Merged

Hmc5883l: Fixed invalid type cast, added features and extended example #12

merged 2 commits into from
Nov 19, 2014

Conversation

Propanu
Copy link
Contributor

@Propanu Propanu commented Nov 14, 2014

Made a few changes to Hmc5883l i2c compass. The first one is a fix, the coordinates were cast to 32-bit (default int size on Edison) instead of 16-bit. Second commit adds in the option to set a declination for a more accurate conversion to heading. Also changes heading to be standard 0 to 360 rather than signed 0 - 180. The example was updated with the new features.

Signed-off-by: Mihai Tudor Panu <mihai.t.panu@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.t.panu@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants