[rotorcraft] one more abs waring fixed

This commit is contained in:
Felix Ruess
2015-11-19 17:57:51 +01:00
parent 718abd61fc
commit cdb57732c1
@@ -143,7 +143,7 @@ float stabilization_attitude_get_heading_f(void)
float heading; float heading;
if (abs(att->phi) < M_PI / 2) { if (fabsf(att->phi) < M_PI / 2) {
heading = att->psi - sinf(att->theta) * att->phi; heading = att->psi - sinf(att->theta) * att->phi;
} else if (att->theta > 0) { } else if (att->theta > 0) {
heading = att->psi - att->phi; heading = att->psi - att->phi;