commit | 9f096e98160a22fb22257aa6c4c19d5705c13872 | [log] [tgz] |
---|---|---|
author | Yuval Peress <peress@google.com> | Thu Jan 11 12:21:37 2024 -0700 |
committer | Maureen Helm <maureen.helm@analog.com> | Mon Jan 15 15:41:58 2024 -0600 |
tree | 25538ffc4fc028d1ee433adfae45f8b8b422d8f6 | |
parent | 5c06d60cceee12bf46ecd3e26c05cd1c6f3cf3fb [diff] |
bma4xx: Optimize calculation Reduce some of the arithmetic required to decode a sample. Math is documented in bma4xx_convert_raw_accel_to_q31. This improved the accuracy from roughly 0.865mm/s2 to 0.001mm/s2 when stationary and using a range of 4g. Signed-off-by: Yuval Peress <peress@google.com>