pymammotion 0.1.8__py3-none-any.whl → 0.1.9__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 +1 -1
- pymammotion/data/model/report_info.py +8 -9
- {pymammotion-0.1.8.dist-info → pymammotion-0.1.9.dist-info}/METADATA +1 -1
- {pymammotion-0.1.8.dist-info → pymammotion-0.1.9.dist-info}/RECORD +6 -6
- {pymammotion-0.1.8.dist-info → pymammotion-0.1.9.dist-info}/LICENSE +0 -0
- {pymammotion-0.1.8.dist-info → pymammotion-0.1.9.dist-info}/WHEEL +0 -0
pymammotion/data/model/device.py
CHANGED
|
@@ -99,7 +99,7 @@ class MowingDevice:
|
|
|
99
99
|
if index == 0:
|
|
100
100
|
self.location.position_type = location.pos_type
|
|
101
101
|
self.location.orientation = location.real_toward / 10000
|
|
102
|
-
self.location.device = coordinate_converter.enu_to_lla(location.real_pos_y, location.real_pos_x)
|
|
102
|
+
self.location.device = coordinate_converter.enu_to_lla(parse_double(location.real_pos_y, 4.0), parse_double(location.real_pos_x, 4.0))
|
|
103
103
|
|
|
104
104
|
self.report_data = self.report_data.from_dict(toapp_report_data.to_dict(casing=betterproto.Casing.SNAKE))
|
|
105
105
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
from dataclasses import dataclass, field, asdict
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
@dataclass
|
|
5
4
|
class ConnectData:
|
|
6
5
|
connect_type: int = 0
|
|
@@ -127,16 +126,16 @@ class ReportData:
|
|
|
127
126
|
locations: list[LocationData] = field(default_factory=list)
|
|
128
127
|
work: WorkData = field(default_factory=WorkData)
|
|
129
128
|
|
|
130
|
-
|
|
131
|
-
def from_dict(
|
|
132
|
-
locations =
|
|
129
|
+
|
|
130
|
+
def from_dict(self, data: dict):
|
|
131
|
+
locations = self.locations
|
|
133
132
|
if data.get('locations') is not None:
|
|
134
133
|
locations=[LocationData.from_dict(loc) for loc in data.get('locations', [])]
|
|
135
134
|
|
|
136
|
-
return
|
|
137
|
-
connect=ConnectData.from_dict(data.get('connect', asdict(
|
|
138
|
-
dev=DeviceData.from_dict(data.get('dev', asdict(
|
|
139
|
-
rtk=RTKData.from_dict(data.get('rtk', asdict(
|
|
135
|
+
return ReportData(
|
|
136
|
+
connect=ConnectData.from_dict(data.get('connect', asdict(self.connect))),
|
|
137
|
+
dev=DeviceData.from_dict(data.get('dev', asdict(self.dev))),
|
|
138
|
+
rtk=RTKData.from_dict(data.get('rtk', asdict(self.rtk))),
|
|
140
139
|
locations=locations,
|
|
141
|
-
work=WorkData.from_dict(data.get('work', asdict(
|
|
140
|
+
work=WorkData.from_dict(data.get('work', asdict(self.work)))
|
|
142
141
|
)
|
|
@@ -20,7 +20,7 @@ pymammotion/bluetooth/data/notifydata.py,sha256=N1bphpueWUWbsWUcpZmMGt2CyCgLcKAF
|
|
|
20
20
|
pymammotion/const.py,sha256=3plR6t5sFVhx3LoUbW5PE2gqIANoD-fSm-T0q8uIwIU,336
|
|
21
21
|
pymammotion/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
pymammotion/data/model/__init__.py,sha256=d8FlIgCcWqoH3jJSpnm-IY-25RM-l2nbRwLtWjSHo74,222
|
|
23
|
-
pymammotion/data/model/device.py,sha256=
|
|
23
|
+
pymammotion/data/model/device.py,sha256=FHX1V_bzvpaGlAz6NXdxShNBYOAG-5g8ebnmj3jOqiA,10353
|
|
24
24
|
pymammotion/data/model/device_config.py,sha256=6BcyVbMyw6vA1jANof8_mnG-jizGsF96pbKeHP4t8G4,179
|
|
25
25
|
pymammotion/data/model/enums.py,sha256=tD_vYsxstOV_lUkYF9uWkrjVOgAJPNnGevy_xmiu3WE,1558
|
|
26
26
|
pymammotion/data/model/excute_boarder_params.py,sha256=kadSth4y-VXlXIZ6R-Ng-kDvBbM-3YRr8bmR86qR0U0,1355
|
|
@@ -32,7 +32,7 @@ pymammotion/data/model/mowing_modes.py,sha256=121zhvouPKRbF7mynJIc7tJ0zO9bS-Nq4C
|
|
|
32
32
|
pymammotion/data/model/plan.py,sha256=7JvqAo0a9Yg1Vtifd4J3Dx3StEppxrMOfmq2-877kYg,2891
|
|
33
33
|
pymammotion/data/model/rapid_state.py,sha256=_e9M-65AbkvIqXyMYzLKBxbNvpso42qD8R-JSt66THY,986
|
|
34
34
|
pymammotion/data/model/region_data.py,sha256=75xOTM1qeRbSROp53eIczw3yCmYM9DgMjMh8qE9xkKo,2880
|
|
35
|
-
pymammotion/data/model/report_info.py,sha256=
|
|
35
|
+
pymammotion/data/model/report_info.py,sha256=n-bdKf_Np0N9meyEbpoVFrbjTnYFF4Q-3uJpiHtYo0M,4444
|
|
36
36
|
pymammotion/data/mqtt/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
37
37
|
pymammotion/data/mqtt/event.py,sha256=kEilMLmwZG2nbokLw7X28KF3b-te8G-MfNARYm4LG6I,2170
|
|
38
38
|
pymammotion/data/mqtt/properties.py,sha256=HkBPghr26L9_b4QaOi1DtPgb0UoPIOGSe9wb3kgnM6Y,2815
|
|
@@ -109,7 +109,7 @@ pymammotion/utility/device_type.py,sha256=KYawu2glZMVlPmxRbA4kVFujXz3miHp3rJiOWR
|
|
|
109
109
|
pymammotion/utility/map.py,sha256=GNDcA-YBIglRJjvQylNdJVefoVzlH16mFSxnojK_B_A,2175
|
|
110
110
|
pymammotion/utility/periodic.py,sha256=9wJMfwXPlx6Mbp3Fws7LLTI34ZDKphH1bva_Ggyk32g,3281
|
|
111
111
|
pymammotion/utility/rocker_util.py,sha256=syPL0QN4zMzHiTIkUKS7RXBBptjdbkfNlPddwUD5V3A,7171
|
|
112
|
-
pymammotion-0.1.
|
|
113
|
-
pymammotion-0.1.
|
|
114
|
-
pymammotion-0.1.
|
|
115
|
-
pymammotion-0.1.
|
|
112
|
+
pymammotion-0.1.9.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
113
|
+
pymammotion-0.1.9.dist-info/METADATA,sha256=HhR28E9a2dkTRoICxUxGJcQBZ4exibBI0UW2ud3ppIU,3922
|
|
114
|
+
pymammotion-0.1.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
115
|
+
pymammotion-0.1.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|