BMI270_SensorAPI
BMI270_SensorAPI copied to clipboard
FIFO headerless mode example: Always one accel frame less than gyro frames
Hi there,
I'm working on some code using the FIFO of the BMI270 and ran into an issue because the number of available data frames of both same configured parts acc and gyro do not show the same value. I now tried the official examle fifo_full_headerless_mode.c and run into the same issue:
Iteration : 2 FIFO data bytes available : 1992 FIFO data bytes requested : 1992 FIFO accel frames requested : 170 FIFO accel frames extracted : 165 FIFO gyro frames requested : 170 FIFO gyro frames extracted : 166
There are e.g. 166 extracted gyro frames, but only 165 gyro frames. With each iteration there's one frame difference. But I think it should be the same amount of data. As example: If both (gyro and acc) are set to e.g. 25Hz I'd assume to get 25 frames for each one per second, which doesn't seem to be the case.
So what am I doing wrong or what could I improve to get the same amount of data for both, gyro and acc?