Unit in which generic_buffer.c application gives data for sensors.
daniel.baluta at gmail.com
Thu Jul 2 06:43:26 EDT 2015
On Thu, Jul 2, 2015 at 10:46 AM, s.rawat <imsaurabhrawat at gmail.com> wrote:
> What are the unit in which the generic_buffer.c application gives the
> accelerometer , Gyro and Magnetometer values.
> Thanks in advance !
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  for units associated with _raw attributes.
There you'll find:
* accel - m/s^2
* gyro - rad/s
* magneto - Gauss
More information about the Kernelnewbies