diff options
| author | David Veenstra <davidjulianveenstra@gmail.com> | 2018-05-18 20:23:14 +0200 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-05-20 12:09:47 +0100 |
| commit | f9db7370be0e93ce4264781e1ada631a32a61e9b (patch) | |
| tree | 695f65399bc455771f5ed5a76edb64337c65c8cb /tools/perf/scripts/python | |
| parent | staging: iio: ad2s1200: Add scaling factor for angular velocity channel (diff) | |
| download | linux-f9db7370be0e93ce4264781e1ada631a32a61e9b.tar.gz linux-f9db7370be0e93ce4264781e1ada631a32a61e9b.zip | |
staging: iio: ad2s1200: Add scaling factor for angle channel
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 <davidjulianveenstra@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
