Re: [PATCH v3 8/9] staging: iio: ad2s1200: Add scaling factor for angle channel

2018-04-28 Thread Jonathan Cameron
On Mon, 23 Apr 2018 00:04:24 +0200 David Veenstra wrote: > A scaling factor of approximately 2 * Pi / (2^12 -1) is added, > to scale the 12-bits angular position to radians. > > A return type of IIO_VAL_INT_PLUS_NANO is used, so that the scale of > both the angle channel and angular velocity cha

[PATCH v3 8/9] staging: iio: ad2s1200: Add scaling factor for angle channel

2018-04-22 Thread David Veenstra
A scaling factor of approximately 2 * Pi / (2^12 -1) is added, to scale the 12-bits angular position to radians. A return type of IIO_VAL_INT_PLUS_NANO is used, so that the scale of both the angle channel and angular velocity channel has 7 significant digits. Signed-off-by: David Veenstra --- Ch