Skip to content

Question: DMP and FIFO, case when you need to grab data rarely. #42

@nikitos1550

Description

@nikitos1550

In all DMP examples there is following thing:

  if ( myICM.status != ICM_20948_Stat_FIFOMoreDataAvail ) // If more data is available then we should read it right away - and not delay
  {
    delay(10);
  }

As I understand DMP is working following way:
All time it is getting raw values for some rate, perform calculations, finally produce for example Quat and put it to FIFO.
According example code, it is supposed to read FIFO fast enough.

But what if I don`t want to grab data always, In my case I need sometimes get actual data(actual current orientation).
How can I reach this?

How deep is FIFO? Will DMP still push new data to FIFO, when it will be full (deleting oldest data)?
Even yes, I will always get some old data (depending on FIFIO size).

Is it possible to disable FIFO or adjust it`s size?

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