Re: Unit in which generic_buffer.c application gives data for sensors.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 2, 2015 at 10:46 AM, s.rawat <imsaurabhrawat@xxxxxxxxx> wrote:
> Hi,
> What are the unit in which the generic_buffer.c application gives the
> accelerometer , Gyro and Magnetometer values.
> Thanks in advance !

Hi,

Look for process_scan function in generic_buffer.c. It says:
process_scan() - print out the values in SI units.

Then, look inside IIO ABI file [1] for units associated with _raw attributes.
There you'll find:

* accel - m/s^2
* gyro - rad/s
* magneto - Gauss

thanks,
Daniel.

[1] http://lxr.free-electrons.com/source/Documentation/ABI/testing/sysfs-bus-iio

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux