AP_Math: replace fabs() with fabsf()

This commit is contained in:
Tom Pittenger 2015-05-08 11:44:28 -07:00 committed by Andrew Tridgell
parent 1c8efb25a8
commit e20ffa8c75

View File

@ -254,7 +254,7 @@ static void test_wrap_cd(void)
for (uint8_t i=0; i<sizeof(wrap_PI_tests)/sizeof(wrap_PI_tests[0]); i++) {
float r = wrap_PI(wrap_PI_tests[i].v);
if (fabs(r - wrap_PI_tests[i].wv) > 0.001f) {
if (fabsf(r - wrap_PI_tests[i].wv) > 0.001f) {
hal.console->printf("wrap_PI: v=%f wv=%f r=%f\n",
wrap_PI_tests[i].v,
wrap_PI_tests[i].wv,