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

IMU Updates #46

Open
6 tasks
guyfleeman opened this issue Jan 8, 2024 · 0 comments
Open
6 tasks

IMU Updates #46

guyfleeman opened this issue Jan 8, 2024 · 0 comments

Comments

@guyfleeman
Copy link
Contributor

guyfleeman commented Jan 8, 2024

The IMU code is pretty bare bones. This should address the motion improvement requirements set by @joe-spall. I suggest:

  • Move the IMU reads into their own task
  • Have the task block on device interrupts
  • Enable interrupts on the BMI085 after gyro conversion, fire SPI DMA transfer
  • Double check the BMI085 settings for data rate vs noise. It may be updating much faster than we need and would have noise
  • Add an optional filter
  • Add accelerometer data fetching at the same time we use DMA to get the gyro data (these may have different acq rate, prioritize gyro)

There's already a pubsub channel setup for IMU data that collin used for the o.g. prototype. This should be task/thread safe.

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

Successfully merging a pull request may close this issue.

2 participants