Skip to content

Commit bb01b16

Browse files
committed
Changed usage of coral placer place() so it forces and does not call done
1 parent 9692966 commit bb01b16

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

autonomous/auto_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ def driving_to_coral(self) -> None:
150150
@state
151151
def scoring_coral(self, initial_call: bool) -> None:
152152
if initial_call:
153-
self.coral_placer.done()
154153
self.coral_placer.place()
155154
elif self.coral_placer.coral_is_scored():
156155
self.next_state("retreating")

controllers/coral_placer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self):
2020
self.coral_scored = False
2121

2222
def place(self) -> None:
23-
self.engage("lowering")
23+
self.engage("lowering", force=True)
2424

2525
def lift(self) -> None:
2626
self.engage()

robot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ def testPeriodic(self) -> None:
252252
if self.gamepad.getRightTriggerAxis() > 0.5:
253253
self.algae_shooter.shoot()
254254
if self.gamepad.getAButton():
255-
self.coral_placer.done()
256255
self.coral_placer.place()
257256
if self.gamepad.getXButton():
258257
self.coral_placer.lift()

0 commit comments

Comments
 (0)