Re: [PATCH v3] iio: cros_ec: Fix the maths for gyro scale calculation

2019-03-16 Thread Jonathan Cameron
On Wed, 13 Mar 2019 12:40:02 +0100 Enric Balletbo i Serra wrote: > From: Gwendal Grignou > > Calculation did not use IIO_DEGREE_TO_RAD and implemented a variant to > avoid precision loss as we aim a nano value. The offset added to avoid > rounding error, though, doesn't give us a close result

[PATCH v3] iio: cros_ec: Fix the maths for gyro scale calculation

2019-03-13 Thread Enric Balletbo i Serra
From: Gwendal Grignou Calculation did not use IIO_DEGREE_TO_RAD and implemented a variant to avoid precision loss as we aim a nano value. The offset added to avoid rounding error, though, doesn't give us a close result to the expected value. E.g. For 1000dps, the result should be: (1000 *