Skip to content

Commit d710d61

Browse files
authored
Merge pull request #288 from thedropbears/start_shoot_earlier
start shooting state machine earlier in auto
2 parents 365d6fc + fbeafe7 commit d710d61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autonomous/auto_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ def tracking_trajectory(self, initial_call, state_tm) -> None:
9797
distance = current_pose.translation().distance(final_pose.translation())
9898
angle_error = (final_pose.rotation() - current_pose.rotation()).radians()
9999

100-
if self.current_leg > -1 and not self.injector_component.has_algae():
100+
if self.current_leg % 2 != 0:
101+
self.algae_shooter.shoot()
102+
else:
101103
self.reef_intake.intake()
102104

103105
if (

0 commit comments

Comments
 (0)