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; }