upm: enable MMC35240 3-axis magnetic sensor library and example

MMC35240 is 3-axis magnetic sensor from MEMSIC.

This sensor can measure magnetic fields within the full scale range of
+-24 Gauss (G).

The library provided is libupm-mmc35240.so
The example provided is mmc35240-example-cxx where it will print x,y,z axis
when trigger buffer data is ready. It's also print azimuth value.

This sensor requires calibration. Please shake the sensor in figure 8 pattern,
mmc35240-example will print the calibrated level.

As the sensor data is noisy, we have implemented denoise algorithm within the
sensor library.

The azimuth formula is provided by Han, He <he.han@intel.com>.

Signed-off-by: Lay, Kuan Loon <kuan.loon.lay@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Lay, Kuan Loon
2017-01-31 15:41:04 +08:00
committed by Mihai Tudor Panu
parent 4ea01180a1
commit fabf4287d6
11 changed files with 2124 additions and 0 deletions

View File

@ -1,3 +1,4 @@
nrf8001
kxcjk1013
l3gd20
mmc35240