mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 20:38:27 +08:00
[rotorcraft] one more abs waring fixed
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user