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

projects/01drv_ism330: Fix ISM330 crashing because the IMU is configured too soon after boot #321

Conversation

SaidAlvarado
Copy link
Contributor

fixes #320

@SaidAlvarado SaidAlvarado changed the title projects/01drv_ism330: Add a delay before initialization to give the … projects/01drv_ism330: Fix ISM330 crashing because the IMU is configured too soon after boot Jun 5, 2024
@SaidAlvarado SaidAlvarado requested a review from aabadie June 5, 2024 10:11
db_timer_hf_init(0);
db_timer_hf_delay_ms(0, 500); // Wait for the IMU to power-up
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not do this straight at the beginning the db_ism330_init function? (That would also mean the driver library has a dependency on "timer_hf"). Also why not use the low frequency timer instead of the high frequency one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No reason, time_hf was already available in the example.
I'll add it inside the driver

@SaidAlvarado SaidAlvarado requested a review from aabadie June 5, 2024 12:05
@aabadie aabadie merged commit b616e10 into DotBots:main Jun 5, 2024
28 checks passed
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.

01drv_ism330 hangs trying to configure the IMU
2 participants