X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=calibration.h;h=6275ad3ce3be75d0a05dabba5bf70eaca6104ea9;hb=b24d6584ce3c44cdb5ba9ebe6aa525ff7ecd477c;hp=be49c3a8ca7074e3b029e1e7c4850031e6e7910c;hpb=cc5be006f5925b908f44587f29e6aea59199a576;p=android-x86%2Fhardware-intel-libsensors.git diff --git a/calibration.h b/calibration.h index be49c3a..6275ad3 100644 --- a/calibration.h +++ b/calibration.h @@ -13,13 +13,8 @@ #define EPSILON 0.000000001 #define CAL_STEPS 4 -/* We'll have multiple calibration levels -* so that we can provide an estimation as fast as possible -*/ -static const float min_diffs[CAL_STEPS] = { 0.2, 0.4, 0.6, 1.0 }; -static const float max_sqr_errs[CAL_STEPS] = { 10.0, 8.0, 5.0, 3.5 }; -static const unsigned int lookback_counts[CAL_STEPS] = { 3, 4, 5, 6 }; - +#define MAGNETIC_LOW 960 /* 31 micro tesla squared */ +#define MAGNETIC_HIGH 3600 /* 60 micro tesla squared */ #ifdef DBG_RAW_DATA #define RAW_DATA_FULL_PATH "/data/raw_compass_data_full_%d.txt"