Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HMC5883L by
Diff: HMC5883L.cpp
- Revision:
- 4:bc4e1201e092
- Parent:
- 3:14d274e0f9de
- Child:
- 5:5104b90e3f0f
--- a/HMC5883L.cpp Tue Nov 06 17:25:45 2012 +0000
+++ b/HMC5883L.cpp Tue Nov 06 17:35:51 2012 +0000
@@ -131,7 +131,7 @@
double HMC5883L::getHeadingXY()
{
- int raw_data[3];
+ int16_t raw_data[3];
getXYZ(raw_data);
double heading = atan2(static_cast<double>(raw_data[1]), static_cast<double>(raw_data[0])); // heading = arctan(Y/X)
