Skip to content

Commit

Permalink
use lead time as the tracking_interval
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Mar 25, 2024
1 parent 0a41c1b commit 2fbee23
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions axis-ptz-controller/axis_ptz_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ def __init__(
self.r_ENz_o_0_t = np.zeros((3,))
self.v_ENz_o_0_t = np.zeros((3,))

# Position and velocity in the geocentric (XYZ) coordinate
# system of the object relative to the tripod at time zero
self.r_XYZ_o_0_t = np.zeros((3,))
self.v_XYZ_o_0_t = np.zeros((3,))

# Distance between the object and the tripod at time one
self.distance3d = 0.0 # [m]

Expand All @@ -290,9 +295,6 @@ def __init__(
# to camera fixed (rst) coordinates
self.E_XYZ_to_rst = np.zeros((3, 3))

self.r_XYZ_o_0_t = np.zeros((3,))
self.v_XYZ_o_0_t = np.zeros((3,))

# Object pan and tilt rates
self.rho_dot_o = 0.0 # [deg/s]
self.tau_dot_o = 0.0 # [deg/s]
Expand Down Expand Up @@ -1382,7 +1384,7 @@ def main(self) -> None:
capture_job = schedule.every(self.capture_interval).seconds.do(
self._capture_image
)
tracking_interval = 0.25
tracking_interval = self.lead_time #0.25
update_tracking_time = time()

# Enter the main loop
Expand Down

0 comments on commit 2fbee23

Please sign in to comment.