]> git.gag.com Git - fw/altos/commit
ao-accel-cal: Validate ADXL375 sensitivity
authorKeith Packard <keithp@keithp.com>
Wed, 31 Jul 2024 20:12:04 +0000 (13:12 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 2 Aug 2024 15:49:14 +0000 (08:49 -0700)
commit6f4f9015612a18406de7c80e9c4a72544fccc35e
tree9a6ba4fadb0108aa34bbca83ef37a97316aa3ca3
parent7da6e6eb53154a8d94513cb4ddb570949ff5d1c9
ao-accel-cal: Validate ADXL375 sensitivity

If the accel device is an ADXL375, make sure the Z axis sensitivity is
within the data sheet range of 18.4 to 22.6 g. Allow for rounding as the
device only records the integer value (sigh).

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-cal-accel/ao-cal-accel.c