changed look up down timing, added log message for when player starts

This commit is contained in:
Adam Saudagar 2021-04-17 22:54:12 +05:30
parent c05355fb77
commit 1b30bc3c82
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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: