-
Notifications
You must be signed in to change notification settings - Fork 186
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
strict-aliasing
warnings
#17
Comments
C++ doesn't like Type Punning. You would have to deactive checking for strict-aliasing in your compiler, which I wouldn't recommend. Simply replace fastInvSquare() by math.h 1/sqrt(). The speedloss is insignificant. |
@facchinm can you explain how to rectify this error(approach) |
Simply replace fastInvSquare() by math.h 1/sqrt() |
I am with thekunalsaini as I get the same error and don't understand the fix. Do I have to search and replace fastInvSquare() by math.h 1/sqrt()? In what file? Sorry if its a stupid question but I just don't understand it. |
MadgwickAHRS/src/MadgwickAHRS.cpp Line 231 in 0a909d2
|
Sorry but if I replace |
math.h is the header containing sqrt() by
|
In the desktop IDE I get a couple of "warnings" but in the ONLINE editor CREATE I get a compilation failure with the following output.
The text was updated successfully, but these errors were encountered: