AC_AttitudeControl: compiler warning stuff

float to double promotion via cos & sin instead of cosf & sinf
(this code is commented out but in case it ever gets included it would be nice to be correct
This commit is contained in:
Tom Pittenger 2015-05-15 08:57:17 -07:00 committed by Andrew Tridgell
parent b4be1b866a
commit 4f1dd2c8a4
1 changed files with 2 additions and 2 deletions

View File

@ -245,8 +245,8 @@ static LowPassFilterFloat rate_dynamics_filter; // Rate Dynamics filter
piro_pitch_i = pitch_i;
Vector2f yawratevector;
yawratevector.x = cos(-omega.z/100);
yawratevector.y = sin(-omega.z/100);
yawratevector.x = cosf(-omega.z/100.0f);
yawratevector.y = sinf(-omega.z/100.0f);
yawratevector.normalize();
roll_i = piro_roll_i * yawratevector.x - piro_pitch_i * yawratevector.y;