Skip to main content
BDiva.1
Associate II
Mar 25, 2021 3:13 PM UTC
Solved

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

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.
Eleon BORLINI
Eleon BORLINIBest answer
ST Employee
Mar 25, 2021 3:18 PM UTC

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
Mar 25, 2021 3:18 PM UTC

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