Skip to content

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

Open
@Hoiss

Description

@Hoiss

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions