Skip to content

Commit

Permalink
Update axis_ptz_controller.py
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Apr 29, 2024
1 parent fd9f0ec commit ff7ca0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axis-ptz-controller/axis_ptz_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ff7ca0e

Please sign in to comment.