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!
