Skip to content
Commit 9381e86c authored by Yuval Peress's avatar Yuval Peress Committed by Carles Cufí
Browse files

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: default avatarYuval Peress <peress@google.com>
parent c743e727
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment