Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: document pitch, yaw, roll modifiers

Introduce ABI documentation for new modifiers used for reporting rotations
expressed as euler angles (i.e. yaw, pitch, roll).

It looks like we have some unit inconsistency along various IIO modifiers:
it seems that incli is in deg, angl is in radians and rot isn't documented,
but at least the adis16209 driver has rot in deg.

Here we use deg (so angl is the only one using radians).

Signed-off-by: Andrea Merello <andrea.merello@iit.it>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220907132205.28021-6-andrea.merello@iit.it
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Andrea Merello and committed by
Jonathan Cameron
246d178c dcedf145

+9
+9
Documentation/ABI/testing/sysfs-bus-iio
··· 2146 2146 Description: 2147 2147 Lists all available time values between upper peak to lower 2148 2148 peak. Units in seconds. 2149 + 2150 + What: /sys/bus/iio/devices/iio:deviceX/in_rot_yaw_raw 2151 + What: /sys/bus/iio/devices/iio:deviceX/in_rot_pitch_raw 2152 + What: /sys/bus/iio/devices/iio:deviceX/in_rot_roll_raw 2153 + KernelVersion: 6.1 2154 + Contact: linux-iio@vger.kernel.org 2155 + Description: 2156 + Raw (unscaled) euler angles readings. Units after 2157 + application of scale are deg.