From bef53de7743b7c6da839391f5b22d927949df975 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Sun, 3 Mar 2024 13:51:29 -0500 Subject: [PATCH] had it backwards! --- skyscan-c2/c2_pub_sub.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skyscan-c2/c2_pub_sub.py b/skyscan-c2/c2_pub_sub.py index c8ee210..4433464 100644 --- a/skyscan-c2/c2_pub_sub.py +++ b/skyscan-c2/c2_pub_sub.py @@ -396,8 +396,10 @@ def _elevation_check(self: Any, azimuth: float, elevation: float) -> bool: for obj in self.occlusion_mapping: if obj["azimuth"] > azimuth: if obj["elevation"] > elevation: + logging.info(f"Plane Occluded: {azimuth} {elevation} Mapping: {obj['azimuth']}, {obj['elevation']}") return False else: + logging.info(f"Plane Visible: {azimuth} {elevation} Mapping: {obj['azimuth']}, {obj['elevation']}") return True break return True @@ -441,7 +443,7 @@ def _target_selection_callback( ) object_ledger_df["min_tilt_fail"] = object_ledger_df.apply( - lambda x: self._elevation_check(x["camera_pan"], x["camera_tilt"]), + lambda x: not self._elevation_check(x["camera_pan"], x["camera_tilt"]), axis=1 )