From ff7ca0eded3f49f53cf096c765a7625e3ea36024 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Sun, 28 Apr 2024 22:54:10 -0400 Subject: [PATCH] Update axis_ptz_controller.py --- axis-ptz-controller/axis_ptz_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axis-ptz-controller/axis_ptz_controller.py b/axis-ptz-controller/axis_ptz_controller.py index 6b688c7..f1de5f9 100644 --- a/axis-ptz-controller/axis_ptz_controller.py +++ b/axis-ptz-controller/axis_ptz_controller.py @@ -674,7 +674,7 @@ def _track_object(self, time_since_last_update: float) -> None: ] ) r_XYZ_a_t = np.matmul(self.camera.get_xyz_to_enz_transformation_matrix().transpose(), r_ENz_a_t) - r_uvw_a_t = np.matmul(self.camera.get_xyz_to_uvw_transformation_matrix, r_XYZ_a_t) + r_uvw_a_t = np.matmul(self.camera.get_xyz_to_uvw_transformation_matrix(), r_XYZ_a_t) # Compute pan an tilt self.camera_pan = math.degrees(math.atan2(r_uvw_a_t[0], r_uvw_a_t[1])) # [deg]