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

Compass example repeatedly initialises IMU #86

Open
tomoinn opened this issue May 2, 2018 · 1 comment
Open

Compass example repeatedly initialises IMU #86

tomoinn opened this issue May 2, 2018 · 1 comment

Comments

@tomoinn
Copy link

tomoinn commented May 2, 2018

In the compass example, there's a call within the loop to sense.get_compass(), which performs IMU setup. This is probably not a good idea, one of the effects is a huge lag in responding to changes in orientation (because you're not reading nearly fast enough from the underlying IMU FIFO). Better to do sense.get_compass() outside the loop, then use raw magnetometer readings and a bit of geometry to calculate bearing within the loop.

@rzr
Copy link

rzr commented May 18, 2020

and other option is to just use orientation['yaw']

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