Skip to content

Commit fbeafe7

Browse files
start shooter state machine based on even or odd legs
1 parent 365d6fc commit fbeafe7

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)