Skip to content

Commit 981fa67

Browse files
authored
Merge pull request #264 from thedropbears/no-shoot-and-run
2 parents 801af39 + 3e4904d commit 981fa67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controllers/algae_shooter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def preparing(self, initial_call: bool):
5656
self.wrist.at_setpoint()
5757
and self.shooter_component.top_flywheels_up_to_speed()
5858
and self.shooter_component.bottom_flywheels_up_to_speed()
59+
and math.isclose(self.chassis.get_velocity().vx, 0)
60+
and math.isclose(self.chassis.get_velocity().vy, 0)
5961
):
6062
self.next_state(self.shooting)
6163

0 commit comments

Comments
 (0)