From 1b30bc3c820b0793eb655253497efdf8b88147e9 Mon Sep 17 00:00:00 2001 From: Adam Saudagar Date: Sat, 17 Apr 2021 22:54:12 +0530 Subject: [PATCH] changed look up down timing, added log message for when player starts --- fishy/engine/fullautofisher/engine.py | 2 +- fishy/engine/fullautofisher/player.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fishy/engine/fullautofisher/engine.py b/fishy/engine/fullautofisher/engine.py index 787139e..8316bd1 100644 --- a/fishy/engine/fullautofisher/engine.py +++ b/fishy/engine/fullautofisher/engine.py @@ -185,7 +185,7 @@ class FullAuto(IEngine): fishing_mode.subscribers.append(found_hole) t = 0 - while not self._hole_found_flag and t <= 4.47: + while not self._hole_found_flag and t <= 1.25: mse.move(0, FullAuto.rotate_by) time.sleep(0.05) t += 0.05 diff --git a/fishy/engine/fullautofisher/player.py b/fishy/engine/fullautofisher/player.py index be00b28..402ebb8 100644 --- a/fishy/engine/fullautofisher/player.py +++ b/fishy/engine/fullautofisher/player.py @@ -49,11 +49,14 @@ class Player: self.hole_complete_flag = True def _start_route(self): - FullAuto.state = State.PLAYING timeline = _get_rec_file() if not timeline: + logging.log("data not found, can't start") return + FullAuto.state = State.PLAYING + logging.info("starting to move") + forward = True i = 0 while self.start_moving_flag: