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

Switch from DMP to Kalman Filter #5

Open
1 task
SammyOina opened this issue Jun 4, 2022 · 0 comments
Open
1 task

Switch from DMP to Kalman Filter #5

SammyOina opened this issue Jun 4, 2022 · 0 comments
Assignees

Comments

@SammyOina
Copy link
Member

SammyOina commented Jun 4, 2022

reaction-wheel/src/main.cpp

Lines 333 to 339 in ed1feb0

if ((mpu.dmpGetCurrentFIFOPacket(fifoBuffer)) && (elapsedTime > sampleTime)); { // Get the Latest packet
// display Euler angles in degrees
mpu.dmpGetQuaternion(&q, fifoBuffer);
mpu.dmpGetGravity(&gravity, &q);
mpu.dmpGetYawPitchRoll(ypr, &q, &gravity);
mpu.getMotion6(&accData[0], &accData[1], &accData[2], &gyrData[0], &gyrData[1], &gyrData[2]);

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