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>
Thu, 22 Oct 2020 04:33:58 +0000 (21:33 -0700)
commit8ddade934e965e19b760cdde4eb8ecadf6abf70c
tree1b7bc9ec9b11ec7c342159ee3a287be732cd1dfb
parente5e240e764d3bf8196a3f5b5fb1a639ad0723138
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