Copter: replace 2xM_PI_F with M_2PI_F
This commit is contained in:
parent
33aa05d7b3
commit
6ef1ebb5dd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user