mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 17:49:06 +08:00
A smaller codesize wrap, since it gets inlined in many places
This commit is contained in:
parent
74ace7d1d5
commit
22bf63cb71
@ -20,7 +20,6 @@ int main()
|
||||
TEST(fabs(wrap(360., 0., 360.)) < FLT_EPSILON);
|
||||
TEST(fabs(wrap(360. - FLT_EPSILON, 0., 360.) - (360. - FLT_EPSILON)) < FLT_EPSILON);
|
||||
TEST(fabs(wrap(360. + FLT_EPSILON, 0., 360.) - FLT_EPSILON) < FLT_EPSILON);
|
||||
TEST(!is_finite(wrap(1000., 0., .01)));
|
||||
|
||||
// wrap pi
|
||||
TEST(fabs(wrap_pi(0.)) < FLT_EPSILON);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user