public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo@kernel.org>
To: Jimmy Assarsson <jimmyassarsson@gmail.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: Use LIS3MDL with LSM6DSM sensor-hub
Date: Tue, 24 Mar 2020 15:09:26 +0100	[thread overview]
Message-ID: <20200324140926.GA1477940@lore-desk-wlan> (raw)
In-Reply-To: <9e34cc2a-dd62-f915-6e82-02af151a26d9@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1685 bytes --]

[...]

> > > > > };
> > > > > 
> > > > > 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

      reply	other threads:[~2020-03-24 14:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-11 20:50 Use LIS3MDL with LSM6DSM sensor-hub Jimmy Assarsson
2020-03-12  8:51 ` Lorenzo Bianconi
2020-03-14 12:43 ` Lorenzo Bianconi
2020-03-19 14:41   ` Jimmy Assarsson
2020-03-19 17:40     ` Lorenzo Bianconi
2020-03-19 18:45       ` Jimmy Assarsson
2020-03-19 20:49         ` Lorenzo Bianconi
2020-03-23 15:21           ` Jimmy Assarsson
2020-03-24  8:20             ` Lorenzo Bianconi
2020-03-24 13:47               ` Jimmy Assarsson
2020-03-24 14:09                 ` Lorenzo Bianconi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200324140926.GA1477940@lore-desk-wlan \
    --to=lorenzo@kernel.org \
    --cc=jimmyassarsson@gmail.com \
    --cc=linux-iio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox