Copter: replace 2xM_PI_F with M_2PI_F

This commit is contained in:
Randy Mackay 2015-05-05 14:22:27 +09:00
parent 33aa05d7b3
commit 6ef1ebb5dd

View File

@ -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_F)) >= LOWBYTE(cmd.p1);
return fabsf(circle_nav.get_angle_total()/M_2PI_F) >= LOWBYTE(cmd.p1);
}
// externs to remove compiler warning