From 14a786bdfadd8799a92a37a6ab04ca0c94559eaa Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 14 Oct 2022 01:28:54 +0100 Subject: [PATCH] AC_AttitudeControl: remove duplicate `_attitude_target.normalize()` --- libraries/AC_AttitudeControl/AC_AttitudeControl.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/libraries/AC_AttitudeControl/AC_AttitudeControl.cpp b/libraries/AC_AttitudeControl/AC_AttitudeControl.cpp index 5b013531ce..fbe6f98d61 100644 --- a/libraries/AC_AttitudeControl/AC_AttitudeControl.cpp +++ b/libraries/AC_AttitudeControl/AC_AttitudeControl.cpp @@ -726,7 +726,6 @@ void AC_AttitudeControl::attitude_controller_run_quat() Quaternion attitude_target_update; attitude_target_update.from_axis_angle(Vector3f{_ang_vel_target.x * _dt, _ang_vel_target.y * _dt, _ang_vel_target.z * _dt}); _attitude_target = _attitude_target * attitude_target_update; - _attitude_target.normalize(); } // ensure Quaternion stay normalised