commit | 9381e86cbe0d7dd00de4c74d060f7b8d7661c7ee | [log] [tgz] |
---|---|---|
author | Yuval Peress <peress@google.com> | Tue Nov 28 00:07:40 2023 -0700 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Tue Jan 16 10:01:00 2024 +0100 |
tree | 69ab8b938040bf84db7038972e59a207236d6629 | |
parent | c743e727566cb7454583c1e657ff98ed2b36dbe1 [diff] |
bmi160: fix value calculation As an example, when the gyro range is set to 250 deg/sec the scale was set to 133 where it really should be 133.160058662. This leads to a 0.12% error in the value returned. By separating the numerator and denominator, we're able to drastically reduce the error. Signed-off-by: Yuval Peress <peress@google.com>