Skip to content

Please correct a small error in compass_rm3100.c #10748

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

Closed
and-sh opened this issue Mar 10, 2025 · 0 comments
Closed

Please correct a small error in compass_rm3100.c #10748

and-sh opened this issue Mar 10, 2025 · 0 comments

Comments

@and-sh
Copy link

and-sh commented Mar 10, 2025

PNI Sensor Corporation recommend to start measurement after populating cycles registers

Image

So this way is slightly incorrect

Image

This way will be a little bit better

    busWrite(mag->busDev, RM3100_REG_TMRC, TMRC_DEFAULT);

    busWrite(mag->busDev, RM3100_REG_CCX1, CCX_DEFAULT_MSB);
    busWrite(mag->busDev, RM3100_REG_CCX0, CCX_DEFAULT_LSB);

    busWrite(mag->busDev, RM3100_REG_CCY1, CCY_DEFAULT_MSB);
    busWrite(mag->busDev, RM3100_REG_CCY0, CCY_DEFAULT_LSB);

    busWrite(mag->busDev, RM3100_REG_CCZ1, CCZ_DEFAULT_MSB);
    busWrite(mag->busDev, RM3100_REG_CCZ0, CCZ_DEFAULT_LSB);

    busWrite(mag->busDev, RM3100_REG_CMM, CMM_DEFAULT);
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