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) fishing_mode.subscribers.append(found_hole)
t = 0 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) mse.move(0, FullAuto.rotate_by)
time.sleep(0.05) time.sleep(0.05)
t += 0.05 t += 0.05

View File

@ -49,11 +49,14 @@ class Player:
self.hole_complete_flag = True self.hole_complete_flag = True
def _start_route(self): def _start_route(self):
FullAuto.state = State.PLAYING
timeline = _get_rec_file() timeline = _get_rec_file()
if not timeline: if not timeline:
logging.log("data not found, can't start")
return return
FullAuto.state = State.PLAYING
logging.info("starting to move")
forward = True forward = True
i = 0 i = 0
while self.start_moving_flag: while self.start_moving_flag: