Skip to content

Commit

Permalink
fix(single-mode): increase command scene animation wait
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Oct 1, 2021
1 parent e7598fd commit 0ed876e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions auto_derby/scenes/single_mode/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ def _enter(cls, ctx: SceneHolder) -> Scene:
if ctx.scene.name() == "single-mode-training":
action.tap_image(templates.RETURN_BUTTON)

action.wait_image(
action.wait_image_stable(
templates.SINGLE_MODE_COMMAND_TRAINING,
templates.SINGLE_MODE_FORMAL_RACE_BANNER,
templates.SINGLE_MODE_URA_FINALS,
duration=2,
)

return cls()
Expand Down Expand Up @@ -96,7 +97,7 @@ def recognize(self, ctx: single_mode.Context):
(7, 2),
(10, 1),
):
time.sleep(5)
time.sleep(3)
self.recognize_commands(ctx)
if not ctx.fan_count:
self.recognize_class(ctx)
Expand Down

0 comments on commit 0ed876e

Please sign in to comment.