From a7cdfb4a0fdc1f230c1cdce745a19a03c0e10b1b Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Fri, 22 Dec 2017 18:09:57 +0300 Subject: [PATCH] Fix pitch and roll in get_telemetry --- clever/src/simple_offboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clever/src/simple_offboard.py b/clever/src/simple_offboard.py index ecc909bc..d4ff37f9 100755 --- a/clever/src/simple_offboard.py +++ b/clever/src/simple_offboard.py @@ -387,7 +387,7 @@ def get_telemetry(req): _, _, res['yaw'] = euler_from_orientation(p.pose.orientation) # Calculate pitch and roll as angles between the pose and fcu_horiz attitude_pose = tf_buffer.transform(pose, 'fcu_horiz', TRANSFORM_TIMEOUT) - res['pitch'], res['roll'], _ = euler_from_orientation(attitude_pose.pose.orientation) + res['roll'], res['pitch'], _ = euler_from_orientation(attitude_pose.pose.orientation) if velocity: v = Vector3Stamped()