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

Fix MPU6000 reset #12371

Merged
merged 1 commit into from Feb 16, 2023
Merged

Conversation

klutvott123
Copy link
Member

Gyro detection fails on some boards after a soft reboot. This PR fixes it by restoring the reset during detection to how it used to be.
This is what the manufacturers documentation says about reset. It's also how it used to be.
bilde

Based on this I would assume that reading registers between these two operations is illegal.
It was changed last year to avoid unintentionally writing to reserved bits in the signal path reset register of the ICM20689 during gyro detection. This behaviour is preserved by moving the ICM20689 detect function to be first in the list.

@klutvott123 klutvott123 added this to the 4.5 milestone Feb 15, 2023
@klutvott123 klutvott123 self-assigned this Feb 15, 2023
@github-actions
Copy link

Do you want to test this code? Here you have an automated build:
Assets
WARNING: It may be unstable. Use only for testing! See: https://www.youtube.com/watch?v=I1uN9CN30gw for instructions for unified targets!

@blckmn
Copy link
Member

blckmn commented Feb 15, 2023

AUTOMERGE: (FAIL)

  • github identifies PR as mergeable -> FAIL
  • assigned to a milestone -> PASS
  • cooling off period lapsed -> PASS
  • commit count less or equal to three -> PASS
  • Don't merge label NOT found -> PASS
  • at least one RN: label found -> PASS
  • Tested label found -> FAIL
  • assigned to an approver -> PASS
  • approver count at least three -> FAIL

@haslinghuis haslinghuis merged commit 885d822 into betaflight:master Feb 16, 2023
@klutvott123 klutvott123 deleted the fix-mpu6000-reset branch February 17, 2023 12:51
obeny pushed a commit to obeny/betaflight that referenced this pull request Oct 11, 2023
obeny pushed a commit to obeny/betaflight that referenced this pull request Oct 23, 2023
obeny pushed a commit to obeny/betaflight that referenced this pull request Nov 15, 2023
davidbitton pushed a commit to davidbitton/betaflight that referenced this pull request Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: COMPLETED
Development

Successfully merging this pull request may close these issues.

None yet

4 participants