pymammotion 0.4.15__py3-none-any.whl → 0.4.17__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 +10 -6
- {pymammotion-0.4.15.dist-info → pymammotion-0.4.17.dist-info}/METADATA +1 -1
- {pymammotion-0.4.15.dist-info → pymammotion-0.4.17.dist-info}/RECORD +5 -5
- {pymammotion-0.4.15.dist-info → pymammotion-0.4.17.dist-info}/LICENSE +0 -0
- {pymammotion-0.4.15.dist-info → pymammotion-0.4.17.dist-info}/WHEEL +0 -0
@@ -48,15 +48,15 @@ class MammotionBaseDevice:
|
|
48
48
|
|
49
49
|
missing_frames = self.mower.map.missing_root_hash_frame(hash_ack)
|
50
50
|
if len(missing_frames) == 0:
|
51
|
-
|
52
|
-
|
53
|
-
|
51
|
+
for sub_cmd in [0, 3]:
|
52
|
+
if len(self.mower.map.missing_hashlist(sub_cmd)) > 0:
|
53
|
+
# data_hash = self.mower.map.missing_hashlist(hash_ack.sub_cmd).pop()
|
54
|
+
for data_hash in self.mower.map.missing_hashlist(hash_ack.sub_cmd):
|
55
|
+
await self.queue_command("synchronize_hash_data", hash_num=data_hash)
|
54
56
|
return
|
55
57
|
|
56
58
|
for frame in missing_frames:
|
57
|
-
await self.queue_command(
|
58
|
-
"get_hash_response", sub_cmd=hash_ack.sub_cmd, total_frame=hash_ack.total_frame, current_frame=frame - 1
|
59
|
-
)
|
59
|
+
await self.queue_command("get_hash_response", total_frame=hash_ack.total_frame, current_frame=frame - 1)
|
60
60
|
|
61
61
|
async def commdata_response(self, common_data: NavGetCommDataAck | SvgMessageAckT) -> None:
|
62
62
|
"""Handle common data responses."""
|
@@ -221,6 +221,10 @@ class MammotionBaseDevice:
|
|
221
221
|
data_hash = self.mower.map.missing_hashlist().pop()
|
222
222
|
await self.queue_command("synchronize_hash_data", hash_num=data_hash)
|
223
223
|
|
224
|
+
if len(self.mower.map.missing_hashlist(3)) > 0:
|
225
|
+
data_hash = self.mower.map.missing_hashlist().pop()
|
226
|
+
await self.queue_command("synchronize_hash_data", hash_num=data_hash)
|
227
|
+
|
224
228
|
# sub_cmd 3 is job hashes??
|
225
229
|
# sub_cmd 4 is dump location (yuka)
|
226
230
|
# jobs list
|
@@ -65,7 +65,7 @@ pymammotion/mammotion/commands/messages/video.py,sha256=YQGIxKx2prA0X01ovNmMkX6Y
|
|
65
65
|
pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
66
66
|
pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3TTad9wHIPsU9s,5640
|
67
67
|
pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_Ar_JEAAMD4fsE,102
|
68
|
-
pymammotion/mammotion/devices/base.py,sha256=
|
68
|
+
pymammotion/mammotion/devices/base.py,sha256=KXgyFyns3A3nvd7KR-dHldNdYrL8qOrcr8r6yXuh6IY,10754
|
69
69
|
pymammotion/mammotion/devices/mammotion.py,sha256=Zz2tUIdGA-jFSHLM3aO8tBMvVl7sBIBiqC9Kg7f-lm8,13190
|
70
70
|
pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=0c-HXawLQVHz28s0HKaSCNq4wmLWJZZ3ATDVnCXdSrc,19579
|
71
71
|
pymammotion/mammotion/devices/mammotion_cloud.py,sha256=A1irPnfyb1xnhnnABUTZkJUm3-SYNbjEYRI5lDjPTI8,14757
|
@@ -117,7 +117,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
|
|
117
117
|
pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
|
118
118
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
119
119
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
120
|
-
pymammotion-0.4.
|
121
|
-
pymammotion-0.4.
|
122
|
-
pymammotion-0.4.
|
123
|
-
pymammotion-0.4.
|
120
|
+
pymammotion-0.4.17.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
121
|
+
pymammotion-0.4.17.dist-info/METADATA,sha256=7gZbe0fWa2CrTL5a8lxzo8D6yiSkItnrcj42XcnhwqY,3834
|
122
|
+
pymammotion-0.4.17.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
123
|
+
pymammotion-0.4.17.dist-info/RECORD,,
|
File without changes
|
File without changes
|