From a43db51440ee4ac502d2e3af7ef74acd56d253a1 Mon Sep 17 00:00:00 2001 From: Peter Hall Date: Mon, 15 Mar 2021 16:53:13 +0000 Subject: [PATCH] AC_AttitudeControl: add get_att_target_euler_rad function --- libraries/AC_AttitudeControl/AC_AttitudeControl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AC_AttitudeControl/AC_AttitudeControl.h b/libraries/AC_AttitudeControl/AC_AttitudeControl.h index e4f4d6979a..9460deaa36 100644 --- a/libraries/AC_AttitudeControl/AC_AttitudeControl.h +++ b/libraries/AC_AttitudeControl/AC_AttitudeControl.h @@ -180,6 +180,7 @@ public: // **NOTE** Using vector3f*deg(100) is more efficient than deg(vector3f)*100 or deg(vector3d*100) because it gives the // same result with the fewest multiplications. Even though it may look like a bug, it is intentional. See issue 4895. Vector3f get_att_target_euler_cd() const { return _attitude_target_euler_angle * degrees(100.0f); } + const Vector3f & get_att_target_euler_rad() const { return _attitude_target_euler_angle; } // Return the body-to-NED target attitude used by the quadplane-specific attitude control input methods Quaternion get_attitude_target_quat() const { return _attitude_target_quat; }