Skip to content

Conversation

@sjonkeesse
Copy link

When Gyro_X_Raw and Gyro_Z_Raw are both -32768, this results in NaN in the square root calculation when the calculation to the power of two is done with var x var. Using the math method pow() solves the problem.

image

When Gyro_X_Raw and Gyro_Z_Raw are both -32768, this results in NaN in the square root calculation when the calculation to the power of two is done with var x var. Using the math method pow() solves the problem.
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.

1 participant