Skip to content

Commit 28028ad

Browse files
committed
bug fix
1 parent 251a57d commit 28028ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

axis-ptz-controller/axis_ptz_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ def _slew_camera(self, rho_target: float, tau_target: float) -> None:
826826
if self.status == Status.SLEWING:
827827
logging.error("Camera is already slewing")
828828
return
829-
if self.use_camera and ( (self.object.tau < self.min_camera_tilt) or (self.object.tau > self.max_camera_tilt) ):
829+
if self.use_camera and ( (tau_target < self.min_camera_tilt) or (tau_target > self.max_camera_tilt) ):
830830
self.object = None
831831
self.do_capture = False
832832
self.status = Status.SLEEPING

0 commit comments

Comments
 (0)