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.cpp
- Revision:
- 19:40c252b4a792
- Parent:
- 18:c8c09a3913ba
- Child:
- 21:c2a2e7cbabdd
--- a/Sensors/Comp/HMC5883.cpp Sat Nov 03 07:44:07 2012 +0000 +++ b/Sensors/Comp/HMC5883.cpp Sat Nov 03 10:48:18 2012 +0000 @@ -3,8 +3,8 @@ HMC5883::HMC5883(PinName sda, PinName scl) : I2C_Sensor(sda, scl, HMC5883_I2C_ADDRESS) { // load calibration values - loadCalibrationValues(scale, 3, "COMPASS_SCALE.txt"); - loadCalibrationValues(offset, 3, "COMPASS_OFFSET.txt"); + //loadCalibrationValues(scale, 3, "COMPASS_SCALE.txt"); + //loadCalibrationValues(offset, 3, "COMPASS_OFFSET.txt"); // initialize HMC5883 writeRegister(HMC5883_CONF_REG_A, 0x78); // 8 samples, 75Hz output, normal mode