altos/bmx160: Compute µT in bmx160 driver using trim data
authorKeith Packard <keithp@keithp.com>
Tue, 25 Feb 2020 22:57:35 +0000 (14:57 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 25 Feb 2020 23:40:35 +0000 (15:40 -0800)
commitff2dc6ea0e62f6534b5fb1b0ec2edd4702cf4a41
treea24fff77b4adeb2deecc84f3707aacf518bfcc6a
parent9aedcdcab2c24b804236a5b8f99da634cac7ba05
altos/bmx160: Compute µT in bmx160 driver using trim data

Instead of attempting to ship all of the trim data, compute µT
on-board. This means losing the raw sensor values.

The compensate functions were taken from the bmm150 sample driver
provided by Bosch under the BSD 3 clause license.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_bmx160.c
src/drivers/ao_bmx160.h