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

Add CAS compensation for BMI270 #4

Merged

Conversation

DusKing1
Copy link
Contributor

According to BMI270 datasheet section 4.6.10:

For optimal gyroscope CAS performance the following data post-processing step is necessary:
Rate_x = DATA_15<<8+DATA_14 - GYR_CAS.factor_zx * (DATA_19<<8+DATA18) / 2^9
Rate_y = ...
Rate_z = DATA_19<<8+DATA_18

@DusKing1 DusKing1 force-pushed the add-cas-compensation-for-bmi270 branch 2 times, most recently from 5eb8ad1 to 15f0a8a Compare November 14, 2022 06:34
@DusKing1 DusKing1 force-pushed the add-cas-compensation-for-bmi270 branch from 15f0a8a to 63a639b Compare November 14, 2022 07:02
Copy link
Contributor

@shanggl shanggl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无明显问题,cpu占用率上升约 5%性能提升可以接收。

Copy link
Contributor

@shanggl shanggl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同意合并入4.3-bsp-rebase default 分支

@shanggl shanggl merged commit ab158f9 into flightng:4.3-bsp-rebase Nov 14, 2022
@DusKing1 DusKing1 deleted the add-cas-compensation-for-bmi270 branch November 14, 2022 13:07
@DusKing1
Copy link
Contributor Author

好长的同意

@DusKing1 DusKing1 added this to the 4.3.2 milestone Nov 27, 2022
@DusKing1
Copy link
Contributor Author

可能从错误的寄存器里面读出了过多的无意义近零值,稍后将重新检查寄存器手册并修复。

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

Successfully merging this pull request may close these issues.

2 participants