altos/drivers: Add ao_adxl375_accel_to_sample macro
authorKeith Packard <keithp@keithp.com>
Sun, 2 Aug 2020 19:51:16 +0000 (12:51 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 22 Aug 2020 02:42:30 +0000 (19:42 -0700)
commitb49e0deb20b7ac1cb1fdd43d65ed3d04b8deb3c4
tree0ec197f875d3f516f8b199ea8d4165b7cd80ec42
parentdf6076e3fb1ab7ed8dcbde918545726562b7055d
altos/drivers: Add ao_adxl375_accel_to_sample macro

This converts from acceleration levels to sample counts for use in
detecting stability of airframe after landing when no other IMU is
present.

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