Re: Use LIS3MDL with LSM6DSM sensor-hub

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

 



[...]

> > > > > };
> > > > > 
> > > > > I'll look into this tomorrow or in the beginning of next week, thanks for the help.
> > > 
> > > Now I've tested this. It looks fine, except for the very first sample:
> > > $ ./iio_generic_buffer -gn lsm6dsm_magn -c 1
> > > iio device number being used is 3
> > > trigger-less mode selected
> > > -3.250836 -2.796192 10.212408 1584976428879020199
> > > 1.893036 2.343738 -0.853224 1584976428917070199
> > > 1.888218 2.343300 -0.852786 1584976428955095199
> > > 1.888218 2.343300 -0.852786 1584976428993145199
> > > 1.889532 2.345490 -0.851472 1584976429031170199
> > 
> > values seems reasonable but I guess it depends on sensor calibration and how is
> > oriented. Do you have any app to test it?
> 
> I think the values are correct. If I rotate the sensor the values change.
> And I get similar values when the sensor reach the same orientation as before.
> The only thing that looks strange, is the very first sample (-3.250836 -2.796192 10.212408),
> which is not close to any of the other samples. When I plot the samples, the other samples
> form a circle, while the first sample is way outside of the circle.

I think this can be due to sensor start-up time

> 
> What about calibration? Is there any functionality in iio for calibration, or in libiio, or will
> this always be part of the application?

AFAIK calibration libraries are done in userspace and usually they are not
open source.

Regards,
Lorenzo

> 
> Unfortunately we don't got any app for this yet.
> 
> Regards,
> jimmy
> 
> > Regards,
> > Lorenzo
> > 
> > > 
> > > Is this expected?
> > > 
> > > Regards,
> > > jimmy

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux