altos: Get BMX160 initialized correctly
authorKeith Packard <keithp@keithp.com>
Fri, 21 Feb 2020 00:51:15 +0000 (16:51 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 21 Feb 2020 06:17:25 +0000 (22:17 -0800)
commit67356ae163487e57e6d9c83cb2b7f71a69f8aa27
tree54bd35da1923fdcc5df55b86ff905ea2090983de
parentee38b3bea20f1e3a73e67aea151f9fc6abdc8483
altos: Get BMX160 initialized correctly

 1. Don't reboot at startup. This probably takes a lot longer
    than 100ms.

 2. Power up acc and gyr before attempting to configure

 3. Clear data registers after setting acc range

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