mrtautopilot 6__tar.gz → 7__tar.gz
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.
- {mrtautopilot-6 → mrtautopilot-7}/PKG-INFO +1 -1
- {mrtautopilot-6 → mrtautopilot-7}/mrtautopilot/__init__.py +1 -1
- {mrtautopilot-6 → mrtautopilot-7}/mrtautopilot/mission.py +13 -28
- {mrtautopilot-6 → mrtautopilot-7}/mrtautopilot.egg-info/PKG-INFO +1 -1
- {mrtautopilot-6 → mrtautopilot-7}/README.md +0 -0
- {mrtautopilot-6 → mrtautopilot-7}/mrtautopilot/autopilot.py +0 -0
- {mrtautopilot-6 → mrtautopilot-7}/mrtautopilot.egg-info/SOURCES.txt +0 -0
- {mrtautopilot-6 → mrtautopilot-7}/mrtautopilot.egg-info/dependency_links.txt +0 -0
- {mrtautopilot-6 → mrtautopilot-7}/mrtautopilot.egg-info/requires.txt +0 -0
- {mrtautopilot-6 → mrtautopilot-7}/mrtautopilot.egg-info/top_level.txt +0 -0
- {mrtautopilot-6 → mrtautopilot-7}/pyproject.toml +0 -0
- {mrtautopilot-6 → mrtautopilot-7}/setup.cfg +0 -0
- {mrtautopilot-6 → mrtautopilot-7}/tests/test_mission.py +0 -0
|
@@ -30,16 +30,11 @@ class Polygon:
|
|
|
30
30
|
Area = Union[Circle, Polygon]
|
|
31
31
|
|
|
32
32
|
|
|
33
|
+
@dataclass
|
|
33
34
|
class Waypoint:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
lon_deg: float,
|
|
38
|
-
speed_mps: float,
|
|
39
|
-
):
|
|
40
|
-
self.lat_deg = lat_deg
|
|
41
|
-
self.lon_deg = lon_deg
|
|
42
|
-
self.speed_mps = speed_mps
|
|
35
|
+
lat_deg: float
|
|
36
|
+
lon_deg: float
|
|
37
|
+
speed_mps: float
|
|
43
38
|
|
|
44
39
|
|
|
45
40
|
class DriftLoiter:
|
|
@@ -57,6 +52,9 @@ class DriftLoiter:
|
|
|
57
52
|
self.radius_m = radius_m
|
|
58
53
|
self.duration_s = duration_s
|
|
59
54
|
|
|
55
|
+
def __repr__(self) -> str:
|
|
56
|
+
return f"DriftLoiter(lat_deg={self.lat_deg}, lon_deg={self.lon_deg}, speed_mps={self.speed_mps}, radius_m={self.radius_m}, duration_s={self.duration_s})"
|
|
57
|
+
|
|
60
58
|
|
|
61
59
|
class Orbit:
|
|
62
60
|
def __init__(
|
|
@@ -75,6 +73,9 @@ class Orbit:
|
|
|
75
73
|
self.is_clockwise = is_clockwise
|
|
76
74
|
self.duration_s = duration_s
|
|
77
75
|
|
|
76
|
+
def __repr__(self) -> str:
|
|
77
|
+
return f"Orbit(lat_deg={self.lat_deg}, lon_deg={self.lon_deg}, speed_mps={self.speed_mps}, radius_m={self.radius_m}, is_clockwise={self.is_clockwise}, duration_s={self.duration_s})"
|
|
78
|
+
|
|
78
79
|
|
|
79
80
|
class Milling:
|
|
80
81
|
def __init__(
|
|
@@ -89,6 +90,9 @@ class Milling:
|
|
|
89
90
|
self.speed_mps = speed_mps
|
|
90
91
|
self.duration_s = duration_s
|
|
91
92
|
|
|
93
|
+
def __repr__(self) -> str:
|
|
94
|
+
return f"Milling(area={self.area}, speed_mps={self.speed_mps}, duration_s={self.duration_s})"
|
|
95
|
+
|
|
92
96
|
|
|
93
97
|
class FaultResponseType(Enum):
|
|
94
98
|
Ignore = 0
|
|
@@ -256,25 +260,6 @@ def make_polygon(
|
|
|
256
260
|
|
|
257
261
|
def _fence_items(mission: Mission) -> List[mrtmavlink.MAVLink_mission_item_int_message]:
|
|
258
262
|
out: List[mrtmavlink.MAVLink_mission_item_int_message] = []
|
|
259
|
-
out.append(
|
|
260
|
-
mrtmavlink.MAVLink_mission_item_int_message(
|
|
261
|
-
target_system=0,
|
|
262
|
-
target_component=0,
|
|
263
|
-
seq=0,
|
|
264
|
-
frame=mrtmavlink.MAV_FRAME_MISSION,
|
|
265
|
-
command=mrtmavlink.MAV_CMD_NAV_FENCE_RETURN_POINT,
|
|
266
|
-
mission_type=mrtmavlink.MAV_MISSION_TYPE_FENCE,
|
|
267
|
-
current=0,
|
|
268
|
-
autocontinue=0,
|
|
269
|
-
param1=0,
|
|
270
|
-
param2=0,
|
|
271
|
-
param3=0,
|
|
272
|
-
param4=0,
|
|
273
|
-
x=0,
|
|
274
|
-
y=0,
|
|
275
|
-
z=0,
|
|
276
|
-
)
|
|
277
|
-
)
|
|
278
263
|
|
|
279
264
|
for shape in mission.fence:
|
|
280
265
|
if type(shape) is KeepInCirlce:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|