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

Reset FIFO and DMP #492

Open
mark2b opened this issue Nov 12, 2023 · 5 comments
Open

Reset FIFO and DMP #492

mark2b opened this issue Nov 12, 2023 · 5 comments

Comments

@mark2b
Copy link

mark2b commented Nov 12, 2023

There is a line in the acc/gyr calibration function
writeByte(MPU9250_ADDRESS, MPU9250_USER_CTRL, 0x0C); // Reset FIFO and DMP
Why value is 0x0C and not 0x6?
0x0C = 0b1100
Bits 2 and 3 are high
But according to documentation for USER_CTRL, bit 3 is Reserved
Screenshot 2023-11-12 at 9 43 38

@kriswiner
Copy link
Owner

kriswiner commented Nov 12, 2023 via email

@mark2b
Copy link
Author

mark2b commented Nov 12, 2023

Thanks for quick answer and great repository

I have another question about calibration

I'm porting this code to rust for Pico 10DOF IMU
There is a code - writing accelerometer biases, for me it works when I comment out this code only

// Apparently this is not working for the acceleration biases in the MPU-9250 // Are we handling the temperature correction bit properly? // Push accelerometer biases to hardware registers writeByte(MPU9250_ADDRESS, XA_OFFSET_H, data[0]); writeByte(MPU9250_ADDRESS, XA_OFFSET_L, data[1]); writeByte(MPU9250_ADDRESS, YA_OFFSET_H, data[2]); writeByte(MPU9250_ADDRESS, YA_OFFSET_L, data[3]); writeByte(MPU9250_ADDRESS, ZA_OFFSET_H, data[4]); writeByte(MPU9250_ADDRESS, ZA_OFFSET_L, data[5]);
Thanks

@kriswiner
Copy link
Owner

kriswiner commented Nov 12, 2023 via email

@mark2b
Copy link
Author

mark2b commented Nov 12, 2023

Sorry, should I expect it works properly if I write accelerometer biases or on some boards it will not work.
(on some ino files this code commented out)
I'm new with IMU.

@kriswiner
Copy link
Owner

kriswiner commented Nov 12, 2023 via email

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