Skip to content
Discussion options

You must be logged in to vote

I would suggest that in state 1 the condition 1.70 < accelz < 2.30 is not being met, causing the break instruction to be executed. The loop will then quit.

Incidentally initialising the MPU in a loop is unnecessary. Do it once before the start of the loop.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Kesse79
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants