Open sjonkeesse opened 11 months ago
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.
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.