Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsm6dsv16x: timestamp #168

Open
nicogou opened this issue Aug 26, 2024 · 1 comment
Open

lsm6dsv16x: timestamp #168

nicogou opened this issue Aug 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nicogou
Copy link

nicogou commented Aug 26, 2024

Device part numbers

lsm6dsv16x (at least, didn't check the others)

Type of bug

examples/lsm6dsv16x_fifo_irq.c (at least)

Describe the bug

When receiving a timestamp via FIFO, the printed value is in LSB, not ms as suggested by the message. In order to convert LSB to milliseconds, one needs to multiply the received value by 21.75µs (see table 127 of the datasheet).
It looks like there is a lsm6dsv16x_from_lsb_to_nsec function which converts the received timestamp to nanoseconds.

@nicogou nicogou added the bug Something isn't working label Aug 26, 2024
@BeSeeTek
Copy link

BeSeeTek commented Aug 30, 2024

@nicogou regarding timing, be aware that the sensors odr is quite inaccurate and deviaties in the order of whole % from the nominal value, as common for MEMS Imus. So use the external synchronisation when ever possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@BeSeeTek @nicogou and others