mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-15 04:23:08 +08:00
Fix: confirm_timer is re-used in wait_until_walk_stable()
This commit is contained in:
@@ -218,7 +218,7 @@ class OSFleet(OSCamera, Combat, Fleet, OSAsh):
|
|||||||
|
|
||||||
logger.info('Camera stabled')
|
logger.info('Camera stabled')
|
||||||
|
|
||||||
def wait_until_walk_stable(self, confirm_timer=Timer(0.8, count=2), skip_first_screenshot=False):
|
def wait_until_walk_stable(self, confirm_timer=None, skip_first_screenshot=False):
|
||||||
"""
|
"""
|
||||||
Wait until homo_loca stabled.
|
Wait until homo_loca stabled.
|
||||||
DETECTION_BACKEND must be 'homography'.
|
DETECTION_BACKEND must be 'homography'.
|
||||||
@@ -230,8 +230,10 @@ class OSFleet(OSCamera, Combat, Fleet, OSAsh):
|
|||||||
record = None
|
record = None
|
||||||
enemy_searching_appear = False
|
enemy_searching_appear = False
|
||||||
self.device.screenshot_interval_set(0.35)
|
self.device.screenshot_interval_set(0.35)
|
||||||
|
if confirm_timer is None:
|
||||||
|
confirm_timer = Timer(0.8, count=2)
|
||||||
|
|
||||||
confirm_timer.start()
|
confirm_timer.reset()
|
||||||
while 1:
|
while 1:
|
||||||
if skip_first_screenshot:
|
if skip_first_screenshot:
|
||||||
skip_first_screenshot = False
|
skip_first_screenshot = False
|
||||||
|
|||||||
Reference in New Issue
Block a user