cancel
Showing results for 
Search instead for 
Did you mean: 

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

BDiva.1
Associate II

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Eleon BORLINI
ST Employee

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

View solution in original post

1 REPLY 1
Eleon BORLINI
ST Employee

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