mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
changed look up down timing, added log message for when player starts
This commit is contained in:
parent
c05355fb77
commit
1b30bc3c82
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user