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

Calibration #25

Open
nices0325 opened this issue Feb 13, 2021 · 1 comment
Open

Calibration #25

nices0325 opened this issue Feb 13, 2021 · 1 comment

Comments

@nices0325
Copy link

nices0325 commented Feb 13, 2021

hello tkj electronics. Well read your good library, it really helped me understand what the kalman filter is.
Anyway, I wanna know how to calibrate mpu6050 accel,gyro offsets using kalman filter. In other IMU like DMP or MAHONY filter, It has a way to calibrate the offsets(accel,gyro). I have no idea how to add calibration code to your example... If you don't mind , Could you let me know the way to calibrate or related links?? Thanks a a lot!

ps.

double accX, accY, accZ;
double gyroX, gyroY, gyroZ;

Would it be proper to use this variables with my own accel&gyro offsets with using my calibration codes?? thank you

@NilotpalMaitra
Copy link

Some MPU6050 libraries (e.g., MPU6050_tockn) have built-in calibration functions like calcGyroOffsets that collect readings during stillness and calculate offsets.

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