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

How to change sample rate #12

Open
cenit opened this issue Nov 8, 2023 · 1 comment
Open

How to change sample rate #12

cenit opened this issue Nov 8, 2023 · 1 comment

Comments

@cenit
Copy link

cenit commented Nov 8, 2023

Hi! First of all, thank you very much for your very versatile library.
I tried to search before posting the question, without any luck, but still I fear this is a common question which I am going to ask again...
Is there any way to change the sample rate with this library?
I'd like to modify the frequency of my MPU6050

@LiquidCGS
Copy link
Owner

Hey!
At the moment changing ODR isn't supported by the library as in most IMU's ODR is also tied to LPF frequencies. You can try changing the sample rate divider on the MPU6050 by editing line 43 in F_MPU6050.c in the lib's files to change the ODR of the gyro from 250hz to 333/500hz/1khz...
it's a messy solution that I've got to think a way around solving in the future, probably after FIFO readings are implemented.
Cheers.

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

2 participants