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.
Diff: Sensors/Comp/HMC5883.h
- Revision:
- 40:2ca410923691
- Parent:
- 34:3aa1cbcde59d
diff -r 9fd3f4439978 -r 2ca410923691 Sensors/Comp/HMC5883.h
--- a/Sensors/Comp/HMC5883.h Wed Aug 28 00:30:38 2013 +0000
+++ b/Sensors/Comp/HMC5883.h Fri Feb 14 14:17:32 2014 +0000
@@ -17,13 +17,14 @@
{
public:
HMC5883(PinName sda, PinName scl);
-
- virtual void read(); // read all axis from register to array data
+ float data[3]; // where the measured data is saved
+ void read(); // read all axis from register to array data
void calibrate(int s);
float get_angle();
private:
- virtual void readraw(); // function to get raw data
+ int raw[3];
+ void readraw(); // function to get raw data
float scale[3]; // calibration parameters
float offset[3];
