Skip to content

Commit

Permalink
v5.5 -
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYX committed Sep 14, 2023
1 parent d32e40a commit 6083b31
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Binary file modified imgs/maps/30797/target.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified imgs/maps/49992/target.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion states.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def normal(self):
s.append(self.now_map)
notif(f"地图编号:{self.now_map}",f"相似度:{self.now_map_sim}")
else:
self.kl = 1
#self.kl = 1
pass
with open(
"check0.txt",
Expand Down
7 changes: 4 additions & 3 deletions utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,13 +774,14 @@ def get_direc(self):
return
if self._stop == 0:
pyautogui.keyDown("w")
time.sleep(0.25)
sft = 0
if sft == 0 and type != 3:
self.press("shift")
sft = 1
time.sleep(0.2)
time.sleep(0.25)
bw_map = self.get_bw_map()
self.get_loc(bw_map, rg=24, offset=self.get_offset(4))
self.get_loc(bw_map, rg=30, offset=self.get_offset(4))
self.get_real_loc(1)
# 复杂的定位、寻路过程
ds = self.get_dis(self.real_loc, loc)
Expand All @@ -793,7 +794,7 @@ def get_direc(self):
return
ctm = time.time()
bw_map = self.get_bw_map()
self.get_loc(bw_map, fbw=1, offset=self.get_offset(2))
self.get_loc(bw_map, fbw=1, offset=self.get_offset(2+(i<=2)), rg=10+6*(i<=2))
self.get_real_loc(2)
ang = (
math.atan2(loc[0] - self.real_loc[0], loc[1] - self.real_loc[1])
Expand Down

0 comments on commit 6083b31

Please sign in to comment.