Skip to content

Commit 84abc58

Browse files
james-wardLucienMorey
authored andcommitted
Bugfix: iterate over pairs properly
1 parent 26ca3be commit 84abc58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/vision.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ def visible_tags(self) -> list[VisibleTag]:
176176
distance = turret_to_tag.norm()
177177
relative_facing = tag.pose.toPose2d().rotation() - turret_to_tag.angle()
178178
if (
179-
(relative_bearing - self.min_rotation).radians() >= -self.CAMERA_FOV
180-
and (self.max_rotation - relative_bearing).radians() >= -self.CAMERA_FOV
179+
(relative_bearing - self.min_rotation).radians() >= 0.0
180+
and (self.max_rotation - relative_bearing).radians() >= 0.0
181181
and abs(relative_facing.degrees()) > 100
182182
and distance < self.CAMERA_MAX_RANGE
183183
):

0 commit comments

Comments
 (0)