You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: