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

Question: QMI8658 example gets 1/2 of true acceleration value when gyro is disabled #2

Open
lyusupov opened this issue May 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@lyusupov
Copy link
Contributor

lyusupov commented May 3, 2023

Sketch: QMI8658_GetDataExample

Normal use case:
when both gyro and accel are enabled - the getAccelerometer() function gives correct acceleration value

Issue:
when gyro is disabled like that:

#if 0
    qmi.configGyroscope(
        /*
        * GYR_RANGE_16DPS
     
< --- skipped --->

    // In 6DOF mode (accelerometer and gyroscope are both enabled),
    // the output data rate is derived from the nature frequency of gyroscope
    qmi.enableGyroscope();
#endif
  • then reported acceleration value is a half of true value.

The workaround is to enable the gyro all the time like the SoftRF did ...
But could we avoid that and get correct acceleration value regardless if the gyro is on or off ?

@lewisxhe
Copy link
Owner

lewisxhe commented May 4, 2023

Give me some time, I'm currently on vacation

@lewisxhe lewisxhe added the bug Something isn't working label May 4, 2023
@LazaroFilm
Copy link

This may be related to the fact that the Accelerometer's ODR has different values when used alone than with the gyro on. see from documentation.

Screenshot 2023-07-11 at 8 41 35 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants