Skip to main content
Graduate
February 7, 2024
Question

Delay in FIFO transmission when batching SFLP and Accelerometer and Gyroscope on LSM6DSV16X

  • February 7, 2024
  • 1 reply
  • 943 views

Hi all, 

I am implementing SFLP in ArduinoIDE using the board library and examples and have modified the code to also batch the accelerometer and gyroscope data in the FIFO buffer, however this creates a consistent delay in the data transmission which is not there when I am solely batching the SFLP game rotation vector. This is the line of code which makes the difference, although I am not sure why or how to get rid of this delay: 

  status |= AccGyr.FIFO_Set_X_BDR(BATCHRATE);
  status |= AccGyr.FIFO_Set_G_BDR(BATCHRATE);
The batch rate is 120 Hz. for all ODR in the program. 
 
Thank you in advance.
    This topic has been closed for replies.

    1 reply

    Technical Moderator
    February 12, 2024

    Hi @ZoeTakacs ,

    How did you configure the sensor? Is your code based on one of our examples? If not, please try to use them and let me know if this solves the delay.

    How do you manage the communication from FIFO? And how do you estimate the delay? Can you share some values to better understand?

     

    Thanks.