Re: [Patch v3 6/6] iio: Added ABI description for quaternion

Jonathan Cameron
2014-04-12T16:55:51Z

On 09/04/14 01:56, Srinivas Pandruvada wrote:
> Added documentation for reading quaternion components for 3D rotations.
>
> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Your quaternion description doesn't really include all the nuances of
quaternions, but will do the job without confusing anyone ;)
(no particularly reason that we have to get a unit quaternion for example)
> ---
> Documentation/ABI/testing/sysfs-bus-iio | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
> index 6e02c50..d1cad9a 100644
> --- a/Documentation/ABI/testing/sysfs-bus-iio
> +++ b/Documentation/ABI/testing/sysfs-bus-iio
> @@ -891,3 +891,12 @@ Contact: linux-iio@vger.kernel.org
> Description:
> This attribute is used to get/set the integration time in
> seconds.
> +
> +What: /sys/bus/iio/devices/iio:deviceX/in_rot_quaternion_raw
> +KernelVersion: 3.15
> +Contact: linux-iio@vger.kernel.org
> +Description:
> + Raw value of quaternion components using a format
> + x y z w. Here x, y, and z component represents the axis about
> + which a rotation will occur and w component represents the
> + amount of rotation.
>