Browse Source

Copter: compiler warnings: float to double

mission-4.1.18
Tom Pittenger 10 years ago committed by Andrew Tridgell
parent
commit
e17e793781
  1. 2
      ArduCopter/commands_logic.pde

2
ArduCopter/commands_logic.pde

@ -701,7 +701,7 @@ static bool verify_circle(const AP_Mission::Mission_Command& cmd) @@ -701,7 +701,7 @@ static bool verify_circle(const AP_Mission::Mission_Command& cmd)
}
// check if we have completed circling
return fabsf(circle_nav.get_angle_total()/(2*M_PI)) >= (float)LOWBYTE(cmd.p1);
return fabsf(circle_nav.get_angle_total()/(float)(2*M_PI)) >= LOWBYTE(cmd.p1);
}
// externs to remove compiler warning

Loading…
Cancel
Save