Skip to content

Commit 97bf31c

Browse files
committed
fix logic check for balistics
1 parent db43414 commit 97bf31c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

controllers/algae_shooter.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ def shoot(self) -> None:
3535
return
3636
if self.reef_intake.is_executing:
3737
return
38-
if (
39-
self.use_ballistics and not self.ballistics_component.is_in_range()
40-
) or not self.ballistics_component.is_aligned():
38+
if self.use_ballistics and (
39+
not self.ballistics_component.is_in_range()
40+
or not self.ballistics_component.is_aligned()
41+
):
4142
return
4243
self.engage()
4344

0 commit comments

Comments
 (0)