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

The mpu6050 fast jitter Angle becomes smaller #55

Open
MrXu-98 opened this issue Nov 23, 2023 · 0 comments
Open

The mpu6050 fast jitter Angle becomes smaller #55

MrXu-98 opened this issue Nov 23, 2023 · 0 comments

Comments

@MrXu-98
Copy link

MrXu-98 commented Nov 23, 2023

For example, 180 degrees will gradually change to 0 degrees and negative numbers, and will restore the Angle after stability
是这个时钟的问题吗
`gyroX -= gyroXoffset;
gyroY -= gyroYoffset;
gyroZ -= gyroZoffset;

interval = (millis() - preInterval) * 0.001;
// interval = 0.0001;//次数受芯片时钟影响,将其设置成一个固定值

angleGyroX += gyroX * interval;
angleGyroY += gyroY * interval;
angleGyroZ += gyroZ * interval;`

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

1 participant