10000 Readings lag · Issue #8 · adafruit/Adafruit_CircuitPython_BNO08x_RVC · GitHub
[go: up one dir, main page]

Skip to content

Readings lag #8

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
caternuson opened this issue Dec 5, 2024 · 1 comment
Closed

Readings lag #8

caternuson opened this issue Dec 5, 2024 · 1 comment

Comments

@caternuson
Copy link
Contributor

Issue can be seen by running bno08x_rvc_simpletest.py example and observing output while moving the sensor.

Start with board flat so Z axis is point up:

Yaw: 1.67 Pitch: -2.07 Roll: 1.29 Degrees
Acceleration X: -0.24 Y: -0.34 Z: 9.58 m/s^2

Yaw: 1.67 Pitch: -2.07 Roll: 1.29 Degrees
Acceleration X: -0.20 Y: -0.34 Z: 9.58 m/s^2

Yaw: 1.67 Pitch: -2.06 Roll: 1.29 Degrees
Acceleration X: -0.20 Y: -0.34 Z: 9.58 m/s^2

Looks good. Now move board 90 degrees so Z axis is horizontal:

Yaw: 1.69 Pitch: -2.06 Roll: 1.30 Degrees
Acceleration X: -0.24 Y: -0.34 Z: 9.58 m/s^2

Yaw: 1.69 Pitch: -2.06 Roll: 1.30 Degrees
Acceleration X: -0.24 Y: -0.38 Z: 9.54 m/s^2

Yaw: 1.69 Pitch: -2.06 Roll: 1.30 Degrees
Acceleration X: -0.20 Y: -0.34 Z: 9.54 m/s^2

No changes. But then wait many 10's of seconds and readings finally change:

Yaw: -171.00 Pitch: -87.48 Roll: 164.32 Degrees
Acceleration X: -0.16 Y: -9.93 Z: -0.42 m/s^2

Yaw: -171.00 Pitch: -87.48 Roll: 164.32 Degrees
Acceleration X: -0.12 Y: -9.93 Z: -0.42 m/s^2

Yaw: -171.00 Pitch: -87.48 Roll: 164.32 Degrees
Acceleration X: -0.12 Y: -9.93 Z: -0.42 m/s^2

This is most likely due to a UART buffer. The BNO080 in RVC mode is constantly spamming data over UART. So new readings won't show up until enough calls are made to read the heading property to clear out buffered data containing old readings.

Forum thread for reference:
https://forums.adafruit.com/viewtopic.php?t=215071

@caternuson
Copy link
Contributor Author

Closing. Fixed with #9.

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
0