Skip to content

Commit

Permalink
Update c2_pub_sub.py
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Mar 3, 2024
1 parent 2f0c63a commit 7aa14c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions skyscan-c2/c2_pub_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,7 @@ def _elevation_check(self: Any, azimuth: float, elevation: float) -> bool:
Returns:
bool: True if the elevation is within the acceptable range
"""
if occlusion_mapping_enabled:
occlusion_mapping_enabled = True
if self.occlusion_mapping_enabled:
for obj in self.occlusion_mapping:
if obj["azimuth"] > azimuth:
if obj["elevation"] > elevation:
Expand Down

0 comments on commit 7aa14c3

Please sign in to comment.