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

Added explicit casts to get rid of Qurt compiler warning about implicit casts #28640

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

katzfey
Copy link
Contributor

@katzfey katzfey commented Nov 15, 2024

Added explicit casts to get rid of the following Qurt compiler warnings:

../../libraries/AP_InertialSensor/AP_InertialSensor_ADIS1647x.cpp:174:30: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
dvel_scale = 400.0 / 0x7FFFFFFF;
~ ^~~~~~~~~~
../../libraries/AP_InertialSensor/AP_InertialSensor_ADIS1647x.cpp:181:44: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
dangle_scale = radians(360.0 / 0x7FFFFFFF);
~ ^~~~~~~~~~
../../libraries/AP_InertialSensor/AP_InertialSensor_ADIS1647x.cpp:185:44: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
dangle_scale = radians(720.0 / 0x7FFFFFFF);
~ ^~~~~~~~~~
../../libraries/AP_InertialSensor/AP_InertialSensor_ADIS1647x.cpp:189:45: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-int-float-conversion]
dangle_scale = radians(2160.0 / 0x7FFFFFFF);

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