pymammotion 0.1.5__py3-none-any.whl → 0.1.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.

@@ -72,6 +72,7 @@ class LocationData:
72
72
 
73
73
  @dataclass
74
74
  class WorkData:
75
+ path: int = 0
75
76
  path_hash: str = ""
76
77
  progress: int = 0
77
78
  area: int = 0
@@ -80,14 +81,22 @@ class WorkData:
80
81
  bp_pos_x: int = 0
81
82
  bp_pos_y: int = 0
82
83
  real_path_num: str = ""
84
+ path_pos_x: int = 0
85
+ path_pos_y: int = 0
83
86
  ub_zone_hash: str = ""
87
+ ub_path_hash: str = ""
84
88
  init_cfg_hash: str = ""
85
89
  ub_ecode_hash: str = ""
90
+ nav_run_mode: int = 0
91
+ test_mode_status: int = 0
92
+ man_run_speed: int = 0
93
+ nav_edit_status: int = 0
86
94
  knife_height: int = 0
87
95
 
88
96
  @classmethod
89
97
  def from_dict(cls, data: dict):
90
98
  return cls(
99
+ path=data.get('path', 0),
91
100
  path_hash=data.get('path_hash', ""),
92
101
  progress=data.get('progress', 0),
93
102
  area=data.get('area', 0),
@@ -96,9 +105,16 @@ class WorkData:
96
105
  bp_pos_x=data.get('bp_pos_x', 0),
97
106
  bp_pos_y=data.get('bp_pos_y', 0),
98
107
  real_path_num=data.get('real_path_num', ""),
108
+ path_pos_x=data.get('path_pos_x', 0),
109
+ path_pos_y=data.get('path_pos_y', 0),
99
110
  ub_zone_hash=data.get('ub_zone_hash', ""),
111
+ ub_path_hash=data.get('ub_path_hash', ""),
100
112
  init_cfg_hash=data.get('init_cfg_hash', ""),
101
113
  ub_ecode_hash=data.get('ub_ecode_hash', ""),
114
+ nav_run_mode=data.get('nav_run_mode', 0),
115
+ test_mode_status=data.get('test_mode_status', 0),
116
+ man_run_speed=data.get('man_run_speed', 0),
117
+ nav_edit_status=data.get('nav_edit_status', 0),
102
118
  knife_height=data.get('knife_height', 0)
103
119
  )
104
120
 
@@ -5,7 +5,7 @@ from pymammotion.data.model.location import Point
5
5
 
6
6
 
7
7
  class CoordinateConverter:
8
- def __init__(self, lat_degrees: float, lon_degrees: float):
8
+ def __init__(self, latitude_rad: float, longitude_rad: float):
9
9
  # Initialize constants
10
10
  self.WGS84A = 6378137.0
11
11
  self.f_ = 3.3528106647474805E-21
@@ -23,8 +23,6 @@ class CoordinateConverter:
23
23
  self.z0_ = 0.0
24
24
 
25
25
  # Call set_init_lla with provided lat/lon
26
- latitude_rad = math.radians(lat_degrees)
27
- longitude_rad = math.radians(lon_degrees)
28
26
  self.set_init_lla(latitude_rad, longitude_rad)
29
27
 
30
28
  def set_init_lla(self, lat_rad, lon_rad):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymammotion
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary:
5
5
  License: GNU-3.0
6
6
  Author: Michael Arthur
@@ -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=ISk_ZT-GoL9Os-2FmxuTnXr2-28DiDhQVo6YEaGhJrg,3639
35
+ pymammotion/data/model/report_info.py,sha256=cG3Y746E-FpflBQE00G6-aigqUtI_6i3oVKzLvZZGvo,4269
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
@@ -106,10 +106,10 @@ pymammotion/utility/constant/__init__.py,sha256=tZz7szqIhrzNjfcLU3ysfINfg5VEBUAi
106
106
  pymammotion/utility/constant/device_constant.py,sha256=Ebmf1S9Of4s_SNp8yC7Vsbh35IniAeY-DYV4lRY5Kmw,7109
107
107
  pymammotion/utility/datatype_converter.py,sha256=v6zym2Zu0upxQjR-xDqXwi3516zpntSlg7LP8tQF5K8,4216
108
108
  pymammotion/utility/device_type.py,sha256=KYawu2glZMVlPmxRbA4kVFujXz3miHp3rJiOWRVj-GI,8285
109
- pymammotion/utility/map.py,sha256=CRW-CjkLBp8R9UcobH2cQ9x4qNxHSLlI2u0jAiKyB8A,2271
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.5.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
113
- pymammotion-0.1.5.dist-info/METADATA,sha256=lSXl_U8-dbyyJWwiHt_E0j6F3N4qdCrh8UY9IHpWm9c,3922
114
- pymammotion-0.1.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
115
- pymammotion-0.1.5.dist-info/RECORD,,
112
+ pymammotion-0.1.7.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
113
+ pymammotion-0.1.7.dist-info/METADATA,sha256=kixUD0_losxJqP-oi2sgZ1Ov58gHDxoGP0vgx4DGJ6k,3922
114
+ pymammotion-0.1.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
115
+ pymammotion-0.1.7.dist-info/RECORD,,