Skip to main content
BDiva.1
Associate II
March 25, 2021
Solved

Algorithm to store Gyroscope and Accelerometer values with associated Timestamps from FIFO when the compression is on.

  • March 25, 2021
  • 1 reply
  • 816 views

Need help in storing sequential gyroscope and accelerometer samples with associated timestamps in array when the FIFO compression is turned on. Ideally this should be the following entries:

Timestamp1, AccelerometerX1, AccelerometerY1, AccelerometerY1, GyroscopeX1, GyroscopeY1, GyroscopeZ1

Timestamp2, AccelerometerX2, AccelerometerY2, AccelerometerY2, GyroscopeX2, GyroscopeY2, GyroscopeZ2

...

TimestampN, AccelerometerXN, AccelerometerYN, AccelerometerYN, GyroscopeXN, GyroscopeYN, GyroscopeZN.

The code should be in C (no lists), the IMU is LSM6DSO. Thanks!

This topic has been closed for replies.
Best answer by Eleon BORLINI

Hi @BDiva.1​ ,

you can find a C sample code for FIFO when the compression is on for the LSM6DSO on Github --> lsm6dso_compressed_fifo.c

You can find the general example folder for this device at this link.

Let me please know if this can be helpful for your application.

-Eleon

1 reply

Eleon BORLINI
Eleon BORLINIBest answer
ST Employee
March 25, 2021

Hi @BDiva.1​ ,

you can find a C sample code for FIFO when the compression is on for the LSM6DSO on Github --> lsm6dso_compressed_fifo.c

You can find the general example folder for this device at this link.

Let me please know if this can be helpful for your application.

-Eleon