altos: Measure mmc5983 offset
authorKeith Packard <keithp@keithp.com>
Wed, 29 Sep 2021 17:24:02 +0000 (10:24 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 29 Sep 2021 17:30:46 +0000 (10:30 -0700)
commit071bcedab48d3bd71f42c685d01fc5c64f702ba3
tree8a44edc1e17ddae040cc3c0d24746aeb4cf4b231
parent1a268f959f5ee76133f4f707cf81a2c0fe4c8e73
altos: Measure mmc5983 offset

This improves mmc5983 accuracy by using the SET/RESET mechanism which
flips the orientation of the mag sensor to cal-out any sensor bias.

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