Skip to content

What is correct method to change DMP default parameters #433

@xlla

Description

@xlla

I have run example MPU6050_DMP6.ino with teapot visualizer, it works perfectly.

Now I want to change some default parameters, like sample rate and FIFO rate.
@jrowberg was said we can direct change MPU6050_DMP_FIFO_RATE_DIVISOR, as comment said, it control FIFO rate, but how actually sample rate ?

I have trace down method dmpInitialize(), and find function setRate(), it's comment said that FIFO output, DMP sampling, etc all base on sample rate, so I should call this function with desired parameter too ?

if so , should I modify code in function dmpInitialize directly or invoke those settings function after call dmpInitialize and before call setDMPEnabled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions