Skip to content

Commit

Permalink
Update camera.py
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed May 13, 2024
1 parent 3bb4d23 commit f506eff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions axis-ptz-controller/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def _compute_pan_rate_index(self, rho_dot: float) -> None:

else:
self.pan_rate_index = (100 / self.pan_rate_max) * rho_dot
self.pan_rate_index = round(self.pan_rate_index)


def _compute_tilt_rate_index(self, tau_dot: float) -> None:
"""Compute tilt rate index between -100 and 100 using rates in
Expand All @@ -436,8 +436,7 @@ def _compute_tilt_rate_index(self, tau_dot: float) -> None:

else:
self.tilt_rate_index = (100 / self.tilt_rate_max) * tau_dot

self.tilt_rate_index = round(self.tilt_rate_index)


def get_yaw_pitch_roll(self) -> Tuple[float, float, float]:
"""
Expand Down

0 comments on commit f506eff

Please sign in to comment.