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:
- 21:c2a2e7cbabdd
- Parent:
- 19:40c252b4a792
--- a/Sensors/Comp/HMC5883.cpp Mon Nov 05 09:19:01 2012 +0000 +++ b/Sensors/Comp/HMC5883.cpp Sat Nov 17 11:49:21 2012 +0000 @@ -32,8 +32,8 @@ { readraw(); for(int i = 0; i < 3; i++) { - Min[i]= Min[i] < raw[i] ? Min[i] : raw[i]; // after each measurement check if there's a new minimum or maximum - Max[i]= Max[i] > raw[i] ? Max[i] : raw[i]; + Min[i] = Min[i] < raw[i] ? Min[i] : raw[i]; // after each measurement check if there's a new minimum or maximum + Max[i] = Max[i] > raw[i] ? Max[i] : raw[i]; } }