pymammotion 0.4.19__py3-none-any.whl → 0.4.20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pymammotion/mammotion/devices/base.py +9 -6
- {pymammotion-0.4.19.dist-info → pymammotion-0.4.20.dist-info}/METADATA +1 -1
- {pymammotion-0.4.19.dist-info → pymammotion-0.4.20.dist-info}/RECORD +5 -5
- {pymammotion-0.4.19.dist-info → pymammotion-0.4.20.dist-info}/LICENSE +0 -0
- {pymammotion-0.4.19.dist-info → pymammotion-0.4.20.dist-info}/WHEEL +0 -0
@@ -218,29 +218,32 @@ class MammotionBaseDevice:
|
|
218
218
|
|
219
219
|
await self.queue_command("read_plan", sub_cmd=2, plan_index=0)
|
220
220
|
|
221
|
-
|
222
|
-
await self.queue_command("get_all_boundary_hash_list", sub_cmd=0)
|
223
|
-
|
224
|
-
for hash, frame in self.mower.map.area.items():
|
221
|
+
for hash, frame in list(self.mower.map.area.items()):
|
225
222
|
missing_frames = self.mower.map.find_missing_frames(frame)
|
226
223
|
if len(missing_frames) > 0:
|
227
224
|
del self.mower.map.area[hash]
|
228
225
|
|
229
|
-
for hash, frame in self.mower.map.path.items():
|
226
|
+
for hash, frame in list(self.mower.map.path.items()):
|
230
227
|
missing_frames = self.mower.map.find_missing_frames(frame)
|
231
228
|
if len(missing_frames) > 0:
|
232
229
|
del self.mower.map.path[hash]
|
233
230
|
|
234
|
-
for hash, frame in self.mower.map.obstacle.items():
|
231
|
+
for hash, frame in list(self.mower.map.obstacle.items()):
|
235
232
|
missing_frames = self.mower.map.find_missing_frames(frame)
|
236
233
|
if len(missing_frames) > 0:
|
237
234
|
del self.mower.map.obstacle[hash]
|
238
235
|
|
236
|
+
# don't know why but total frame on svg is wrong
|
239
237
|
# for hash, frame in self.mower.map.svg.items():
|
240
238
|
# missing_frames = self.mower.map.find_missing_frames(frame)
|
241
239
|
# if len(missing_frames) > 0:
|
242
240
|
# del self.mower.map.svg[hash]
|
243
241
|
|
242
|
+
if len(self.mower.map.root_hash_lists) == 0:
|
243
|
+
await self.queue_command("get_all_boundary_hash_list", sub_cmd=0)
|
244
|
+
# add a small delay to allow result to come through if it does.
|
245
|
+
await asyncio.sleep(1)
|
246
|
+
|
244
247
|
if len(self.mower.map.missing_hashlist()) > 0:
|
245
248
|
data_hash = self.mower.map.missing_hashlist().pop()
|
246
249
|
await self.queue_command("synchronize_hash_data", hash_num=data_hash)
|
@@ -67,7 +67,7 @@ pymammotion/mammotion/commands/messages/video.py,sha256=YQGIxKx2prA0X01ovNmMkX6Y
|
|
67
67
|
pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
68
68
|
pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3TTad9wHIPsU9s,5640
|
69
69
|
pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_Ar_JEAAMD4fsE,102
|
70
|
-
pymammotion/mammotion/devices/base.py,sha256=
|
70
|
+
pymammotion/mammotion/devices/base.py,sha256=w7ZucgZkOBdpPajrJs-W4oZpoDRpTDYgCCdVlwOP-uo,11901
|
71
71
|
pymammotion/mammotion/devices/mammotion.py,sha256=BgbXT4afkOyDAX1E52vuHNkOpqrDLKlqt9TA0gPwRTo,13624
|
72
72
|
pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=B1tpnC8vrbXGKhFq-l5LR86EcCvd6iHuW5kOkhpjwgY,19541
|
73
73
|
pymammotion/mammotion/devices/mammotion_cloud.py,sha256=vh35qIT5hC6h6TwwejGa_GusU_oD7_dsX9b8b526irI,13720
|
@@ -119,7 +119,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
|
|
119
119
|
pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
|
120
120
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
121
121
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
122
|
-
pymammotion-0.4.
|
123
|
-
pymammotion-0.4.
|
124
|
-
pymammotion-0.4.
|
125
|
-
pymammotion-0.4.
|
122
|
+
pymammotion-0.4.20.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
123
|
+
pymammotion-0.4.20.dist-info/METADATA,sha256=7RsPDBnwDZdAVrsW2xewSLl85Avfd5gK_w6RatBxOto,3834
|
124
|
+
pymammotion-0.4.20.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
125
|
+
pymammotion-0.4.20.dist-info/RECORD,,
|
File without changes
|
File without changes
|