Skip to content

Commit

Permalink
updated lock
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Feb 26, 2024
1 parent ea4f349 commit c394d06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions skyscan-c2/c2_pub_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _calculate_camera_angles(self: Any, data: Any) -> tuple[float, float]:

# Assign identifier, time, position, and velocity of the
# object
data = self.decode_payload(msg, "Selected Object")

if not set(
[
"timestamp",
Expand All @@ -168,7 +168,7 @@ def _calculate_camera_angles(self: Any, data: Any) -> tuple[float, float]:
]
) <= set(data.keys()):
logging.info(f"Required keys missing from object message data: {data}")
return
return 0, 0
logging.info(f"Processing object msg data: {data}")
self.timestamp_o = float(data["timestamp"]) # [s]
self.timestamp_c = self.timestamp_o
Expand Down
2 changes: 1 addition & 1 deletion skyscan-c2/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c394d06

Please sign in to comment.