]> git.gag.com Git - fw/altos/commit
ao-accel-cal: Validate ADXL375 sensitivity hack-adxl
authorKeith Packard <keithp@keithp.com>
Wed, 31 Jul 2024 20:12:04 +0000 (13:12 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 31 Jul 2024 20:13:23 +0000 (13:13 -0700)
commitfeb202dd8a607d91d2bfc1d18c8b838846b00d7c
treeca70426cb6f18f37971bacb4766b1dec7d6e02f7
parent05b4152cb11fcc98062c4e223fff799fb957aee3
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