pymammotion 0.4.45__py3-none-any.whl → 0.4.46__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/data/model/device.py +8 -0
- pymammotion/data/state_manager.py +6 -5
- {pymammotion-0.4.45.dist-info → pymammotion-0.4.46.dist-info}/METADATA +1 -1
- {pymammotion-0.4.45.dist-info → pymammotion-0.4.46.dist-info}/RECORD +6 -6
- {pymammotion-0.4.45.dist-info → pymammotion-0.4.46.dist-info}/LICENSE +0 -0
- {pymammotion-0.4.45.dist-info → pymammotion-0.4.46.dist-info}/WHEEL +0 -0
pymammotion/data/model/device.py
CHANGED
@@ -94,10 +94,18 @@ class MowingDevice(DataClassORJSONMixin):
|
|
94
94
|
self.location.work_zone = (
|
95
95
|
location.zone_hash if self.report_data.dev.sys_status == WorkMode.MODE_WORKING else 0
|
96
96
|
)
|
97
|
+
# if location.bol_hash:
|
98
|
+
# for loc in toapp_report_data.locations:
|
99
|
+
# if loc.bol_hash:
|
100
|
+
# if loc.bol_hash != location.bol_hash:
|
101
|
+
# self.map = HashList()
|
102
|
+
#MurMurHashUtil.hash_unsigned_list(list(self.map.area.keys()))
|
97
103
|
|
98
104
|
if toapp_report_data.fw_info:
|
99
105
|
self.update_device_firmwares(toapp_report_data.fw_info)
|
100
106
|
|
107
|
+
|
108
|
+
|
101
109
|
self.report_data.update(toapp_report_data.to_dict(casing=betterproto.Casing.SNAKE))
|
102
110
|
|
103
111
|
def run_state_update(self, rapid_state: SystemRapidStateTunnelMsg) -> None:
|
@@ -168,6 +168,12 @@ class StateManager:
|
|
168
168
|
converted_list = [AreaHashNameList(name=item.name, hash=item.hash) for item in hash_names.hashnames]
|
169
169
|
self._device.map.area_name = converted_list
|
170
170
|
|
171
|
+
case "bidire_reqconver_path":
|
172
|
+
work_settings: NavReqCoverPath = nav_msg[1]
|
173
|
+
self._device.work = CurrentTaskSettings.from_dict(
|
174
|
+
work_settings.to_dict(casing=betterproto.Casing.SNAKE)
|
175
|
+
)
|
176
|
+
|
171
177
|
def _update_sys_data(self, message) -> None:
|
172
178
|
"""Update system."""
|
173
179
|
sys_msg = betterproto.which_one_of(message.sys, "SubSysMsg")
|
@@ -209,11 +215,6 @@ class StateManager:
|
|
209
215
|
if resp.res == DrvDevInfoResult.DRV_RESULT_SUC and resp.id == 1 and resp.type == 6:
|
210
216
|
self._device.mower_state.swversion = resp.info
|
211
217
|
self._device.device_firmwares.device_version = resp.info
|
212
|
-
case "bidire_reqconver_path":
|
213
|
-
work_settings: NavReqCoverPath = net_msg[1]
|
214
|
-
self._device.work = CurrentTaskSettings.from_dict(
|
215
|
-
work_settings.to_dict(casing=betterproto.Casing.SNAKE)
|
216
|
-
)
|
217
218
|
|
218
219
|
def _update_mul_data(self, message) -> None:
|
219
220
|
pass
|
@@ -25,7 +25,7 @@ pymammotion/const.py,sha256=lWRxvTVdXnNHuxqvRkjO5ziK0Ic-fZMM6J2dbe5M6Nc,385
|
|
25
25
|
pymammotion/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
26
|
pymammotion/data/model/__init__.py,sha256=UVRbSXGOjYnWv30ZEvzT5QRpdVqAbyeToo-t0QBWyi4,292
|
27
27
|
pymammotion/data/model/account.py,sha256=vJM-KTf2q6eBfVC-UlNHBSmJvqHiCawZ40vnuhXhaz8,140
|
28
|
-
pymammotion/data/model/device.py,sha256=
|
28
|
+
pymammotion/data/model/device.py,sha256=9rKshhdlHFfyPW-brxlhydQLDZuNi9Q4t8KjSu8Dm2s,7381
|
29
29
|
pymammotion/data/model/device_config.py,sha256=DTnoePsMwJrKVXqGeKvbZQjs8Zab61U5T3b-c-w0WlM,2654
|
30
30
|
pymammotion/data/model/device_info.py,sha256=Q0qJ6BflQycH_VFugwaFFXcvM69q2v9JAe2wWOcCggE,904
|
31
31
|
pymammotion/data/model/device_limits.py,sha256=m8HdxD-RaAkPm7jHYb9GLxMEH9IfzBPz0ZypmsLnId4,1946
|
@@ -45,7 +45,7 @@ pymammotion/data/mqtt/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdr
|
|
45
45
|
pymammotion/data/mqtt/event.py,sha256=r14gzZVxmlGVAwFdZQ1CUsMZFHHwRKnbt2VHnjugP28,5123
|
46
46
|
pymammotion/data/mqtt/properties.py,sha256=pX5JRVmmpVO04CSPm5xAGcSWA_OeLd0JnBagLsfiSEc,3755
|
47
47
|
pymammotion/data/mqtt/status.py,sha256=SgdrpE1Uldb01hybO6hYhgU1Sp1eILghC0UhMZMHrdQ,1091
|
48
|
-
pymammotion/data/state_manager.py,sha256=
|
48
|
+
pymammotion/data/state_manager.py,sha256=lORef_yVdYzaO_XafeRyILdXxGYx4Btt7ZvMNChpL3I,9829
|
49
49
|
pymammotion/event/__init__.py,sha256=mgATR6vPHACNQ-0zH5fi7NdzeTCDV1CZyaWPmtUusi8,115
|
50
50
|
pymammotion/event/event.py,sha256=bj2RirSIRyBs0QvkcrOtwZWUX_8F3m1sySuHVyKmZLs,2143
|
51
51
|
pymammotion/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -123,7 +123,7 @@ pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tp
|
|
123
123
|
pymammotion/utility/mur_mur_hash.py,sha256=xEfOZVbqRawJj66eLgtnZ85OauDR47oIPr29OHelzPI,4468
|
124
124
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
125
125
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
126
|
-
pymammotion-0.4.
|
127
|
-
pymammotion-0.4.
|
128
|
-
pymammotion-0.4.
|
129
|
-
pymammotion-0.4.
|
126
|
+
pymammotion-0.4.46.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
127
|
+
pymammotion-0.4.46.dist-info/METADATA,sha256=z90IoGAzkUtyaR8c3i2jWNFErwyzwDqjo-Qx1yRFeJM,3878
|
128
|
+
pymammotion-0.4.46.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
129
|
+
pymammotion-0.4.46.dist-info/RECORD,,
|
File without changes
|
File without changes
|