From 70845882a7e69a57050ef9cbb5b03f4ffff92475 Mon Sep 17 00:00:00 2001 From: Jonathan Challinger Date: Sun, 19 Oct 2014 11:52:14 -0700 Subject: [PATCH] AP_Math: fix up rotation test suite --- libraries/AP_Math/examples/eulers/eulers.pde | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Math/examples/eulers/eulers.pde b/libraries/AP_Math/examples/eulers/eulers.pde index 9c92a52a41..6d986681f2 100644 --- a/libraries/AP_Math/examples/eulers/eulers.pde +++ b/libraries/AP_Math/examples/eulers/eulers.pde @@ -33,6 +33,7 @@ #include #include #include +#include const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; @@ -132,7 +133,7 @@ static void test_quaternion(float roll, float pitch, float yaw) float roll2, pitch2, yaw2; q.from_euler(roll, pitch, yaw); - q.to_euler(&roll2, &pitch2, &yaw2); + q.to_euler(roll2, pitch2, yaw2); check_result("test_quaternion1", roll, pitch, yaw, roll2, pitch2, yaw2); m.from_euler(roll, pitch, yaw); @@ -141,7 +142,7 @@ static void test_quaternion(float roll, float pitch, float yaw) m.from_euler(roll, pitch, yaw); q.from_rotation_matrix(m); - q.to_euler(&roll2, &pitch2, &yaw2); + q.to_euler(roll2, pitch2, yaw2); check_result("test_quaternion3", roll, pitch, yaw, roll2, pitch2, yaw2); q.rotation_matrix(m); @@ -192,7 +193,7 @@ static void test_conversion(float roll, float pitch, float yaw) float roll3, pitch3, yaw3; q.from_euler(roll, pitch, yaw); - q.to_euler(&roll2, &pitch2, &yaw2); + q.to_euler(roll2, pitch2, yaw2); check_result("test_conversion1", roll, pitch, yaw, roll2, pitch2, yaw2); q.rotation_matrix(m);