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

AK8963 scalings should use individual components #59

Closed
simonjwright opened this issue Sep 25, 2016 · 1 comment
Closed

AK8963 scalings should use individual components #59

simonjwright opened this issue Sep 25, 2016 · 1 comment
Labels

Comments

@simonjwright
Copy link
Contributor

In components/src/motion/ak8963/ak8963.adb, procedure Get_Heading, it says

     if Status = Ok then
        Mx := Mx * ((Float (Buffer (1)) - 128.0) / 256.0 + 1.0);
        My := My * ((Float (Buffer (1)) - 128.0) / 256.0 + 1.0);
        Mz := Mz * ((Float (Buffer (1)) - 128.0) / 256.0 + 1.0);
     end if;

The Y component should use Buffer (2), the Z component should use Buffer (3).

lambourg added a commit that referenced this issue Sep 25, 2016
@lambourg
Copy link
Member

Thanks Simon, this is now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants