NOT FINISHED YET!!! My first try to get a self built fully working Quadrocopter based on an mbed, a self built frame and some other more or less cheap parts.
Diff: Sensors/Comp/HMC5883.h
- Revision:
- 14:cf260677ecde
- Parent:
- 12:67a06c9b69d5
- Child:
- 17:e096e85f6c36
--- a/Sensors/Comp/HMC5883.h Thu Oct 25 19:27:56 2012 +0000 +++ b/Sensors/Comp/HMC5883.h Sat Oct 27 10:53:43 2012 +0000 @@ -16,18 +16,9 @@ public: HMC5883(PinName sda, PinName scl); - //my float data[3]; - void read(); - void calibrate(int s); - int Min[3]; - int Max[3]; - float scale[3]; - float offset[3]; - LocalFileSystem local; - float get_angle(); private: @@ -41,6 +32,12 @@ void writeReg(char address, char data); void readMultiReg(char address, char* output, int size); + // calibration parameters and their saving + int Min[3]; + int Max[3]; + float scale[3]; + float offset[3]; + LocalFileSystem local; }; #endif