Skip to content

Commit

Permalink
had it backwards!
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Mar 3, 2024
1 parent 7aa14c3 commit bef53de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion skyscan-c2/c2_pub_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
)

Expand Down

0 comments on commit bef53de

Please sign in to comment.