Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIFO headerless mode example: Always one accel frame less than gyro frames #15

Open
Hoiss opened this issue Dec 13, 2022 · 0 comments
Open

Comments

@Hoiss
Copy link

Hoiss commented Dec 13, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant