pymammotion 0.5.6__py3-none-any.whl → 0.5.7__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.
Potentially problematic release.
This version of pymammotion might be problematic. Click here for more details.
- pymammotion/data/model/device.py +8 -6
- {pymammotion-0.5.6.dist-info → pymammotion-0.5.7.dist-info}/METADATA +1 -1
- {pymammotion-0.5.6.dist-info → pymammotion-0.5.7.dist-info}/RECORD +5 -5
- {pymammotion-0.5.6.dist-info → pymammotion-0.5.7.dist-info}/LICENSE +0 -0
- {pymammotion-0.5.6.dist-info → pymammotion-0.5.7.dist-info}/WHEEL +0 -0
pymammotion/data/model/device.py
CHANGED
|
@@ -55,9 +55,9 @@ class MowingDevice(DataClassORJSONMixin):
|
|
|
55
55
|
self.location.dock.longitude = parse_double(buffer_list.update_buf_data[8], 4.0)
|
|
56
56
|
self.location.dock.rotation = buffer_list.update_buf_data[3] + 180
|
|
57
57
|
case 2:
|
|
58
|
-
self.err_code_list.clear()
|
|
59
|
-
self.err_code_list_time.clear()
|
|
60
|
-
self.err_code_list.extend(
|
|
58
|
+
self.errors.err_code_list.clear()
|
|
59
|
+
self.errors.err_code_list_time.clear()
|
|
60
|
+
self.errors.err_code_list.extend(
|
|
61
61
|
[
|
|
62
62
|
buffer_list.update_buf_data[3],
|
|
63
63
|
buffer_list.update_buf_data[5],
|
|
@@ -71,7 +71,7 @@ class MowingDevice(DataClassORJSONMixin):
|
|
|
71
71
|
buffer_list.update_buf_data[21],
|
|
72
72
|
]
|
|
73
73
|
)
|
|
74
|
-
self.err_code_list_time.extend(
|
|
74
|
+
self.errors.err_code_list_time.extend(
|
|
75
75
|
[
|
|
76
76
|
buffer_list.update_buf_data[4],
|
|
77
77
|
buffer_list.update_buf_data[6],
|
|
@@ -87,6 +87,7 @@ class MowingDevice(DataClassORJSONMixin):
|
|
|
87
87
|
)
|
|
88
88
|
|
|
89
89
|
def update_report_data(self, toapp_report_data: ReportInfoData) -> None:
|
|
90
|
+
"""Set report data for the mower."""
|
|
90
91
|
coordinate_converter = CoordinateConverter(self.location.RTK.latitude, self.location.RTK.longitude)
|
|
91
92
|
for index, location in enumerate(toapp_report_data.locations):
|
|
92
93
|
if index == 0 and location.real_pos_y != 0:
|
|
@@ -112,6 +113,7 @@ class MowingDevice(DataClassORJSONMixin):
|
|
|
112
113
|
self.report_data.update(toapp_report_data.to_dict(casing=betterproto.Casing.SNAKE))
|
|
113
114
|
|
|
114
115
|
def run_state_update(self, rapid_state: SystemRapidStateTunnelMsg) -> None:
|
|
116
|
+
"""Set lat long, work zone of RTK and robot."""
|
|
115
117
|
coordinate_converter = CoordinateConverter(self.location.RTK.latitude, self.location.RTK.longitude)
|
|
116
118
|
self.mowing_state = RapidState().from_raw(rapid_state.rapid_state_data)
|
|
117
119
|
self.location.position_type = self.mowing_state.pos_type
|
|
@@ -125,13 +127,13 @@ class MowingDevice(DataClassORJSONMixin):
|
|
|
125
127
|
)
|
|
126
128
|
|
|
127
129
|
def mow_info(self, toapp_mow_info: MowToAppInfoT) -> None:
|
|
128
|
-
|
|
130
|
+
"""Set mow info."""
|
|
129
131
|
|
|
130
132
|
def report_missing_data(self) -> None:
|
|
131
133
|
"""Report missing data so we can refetch it."""
|
|
132
134
|
|
|
133
135
|
def update_device_firmwares(self, fw_info: DeviceFwInfo) -> None:
|
|
134
|
-
"""
|
|
136
|
+
"""Set firmware versions on all parts of the robot or RTK."""
|
|
135
137
|
for mod in fw_info.mod:
|
|
136
138
|
match mod.type:
|
|
137
139
|
case 1:
|
|
@@ -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=eu0GA_2FJFgrm_qB2U0Y_LU7xMmLH41kVN9nNlIzcPM,7892
|
|
29
29
|
pymammotion/data/model/device_config.py,sha256=DTnoePsMwJrKVXqGeKvbZQjs8Zab61U5T3b-c-w0WlM,2654
|
|
30
30
|
pymammotion/data/model/device_info.py,sha256=Q5PbPdTfd948ZWc8EHjN5zwU6pha5MCr47ZEXzCYKNY,1148
|
|
31
31
|
pymammotion/data/model/device_limits.py,sha256=m8HdxD-RaAkPm7jHYb9GLxMEH9IfzBPz0ZypmsLnId4,1946
|
|
@@ -124,7 +124,7 @@ pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tp
|
|
|
124
124
|
pymammotion/utility/mur_mur_hash.py,sha256=xEfOZVbqRawJj66eLgtnZ85OauDR47oIPr29OHelzPI,4468
|
|
125
125
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
|
126
126
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
|
127
|
-
pymammotion-0.5.
|
|
128
|
-
pymammotion-0.5.
|
|
129
|
-
pymammotion-0.5.
|
|
130
|
-
pymammotion-0.5.
|
|
127
|
+
pymammotion-0.5.7.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
128
|
+
pymammotion-0.5.7.dist-info/METADATA,sha256=UAJpuhAZxf_jnb5I0uxjVpG-n05QuyduCKc9faQOdTo,3870
|
|
129
|
+
pymammotion-0.5.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
130
|
+
pymammotion-0.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|