Copter: compiler warning stuff

float to double promotion via cos instead of cosf
This commit is contained in:
Tom Pittenger 2015-05-15 08:54:46 -07:00 committed by Andrew Tridgell
parent 44fd72cb1f
commit b4be1b866a
1 changed files with 1 additions and 1 deletions

View File

@ -1026,7 +1026,7 @@ static void update_load_factor(void)
// limit to 85 degrees to prevent numerical errors
demanded_roll = 85;
}
aerodynamic_load_factor = 1.0f / safe_sqrt(cos(radians(demanded_roll)));
aerodynamic_load_factor = 1.0f / safe_sqrt(cosf(radians(demanded_roll)));
if (!aparm.stall_prevention) {
// stall prevention is disabled