From c394d065b63d5aed32ec3f43995b7a41f79ef8e0 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Sun, 25 Feb 2024 22:43:04 -0500 Subject: [PATCH] updated lock --- skyscan-c2/c2_pub_sub.py | 4 ++-- skyscan-c2/poetry.lock | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/skyscan-c2/c2_pub_sub.py b/skyscan-c2/c2_pub_sub.py index a0a5467..6f53f6b 100644 --- a/skyscan-c2/c2_pub_sub.py +++ b/skyscan-c2/c2_pub_sub.py @@ -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", @@ -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 diff --git a/skyscan-c2/poetry.lock b/skyscan-c2/poetry.lock index 62f9b39..2e35e02 100644 --- a/skyscan-c2/poetry.lock +++ b/skyscan-c2/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.0 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. [[package]] name = "numpy"