mrtautopilot 10__tar.gz → 12__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-10 → mrtautopilot-12}/PKG-INFO +1 -1
- {mrtautopilot-10 → mrtautopilot-12}/mrtautopilot/__init__.py +1 -1
- {mrtautopilot-10 → mrtautopilot-12}/mrtautopilot/autopilot.py +11 -6
- {mrtautopilot-10 → mrtautopilot-12}/mrtautopilot.egg-info/PKG-INFO +1 -1
- {mrtautopilot-10 → mrtautopilot-12}/README.md +0 -0
- {mrtautopilot-10 → mrtautopilot-12}/mrtautopilot/mission.py +0 -0
- {mrtautopilot-10 → mrtautopilot-12}/mrtautopilot.egg-info/SOURCES.txt +0 -0
- {mrtautopilot-10 → mrtautopilot-12}/mrtautopilot.egg-info/dependency_links.txt +0 -0
- {mrtautopilot-10 → mrtautopilot-12}/mrtautopilot.egg-info/requires.txt +0 -0
- {mrtautopilot-10 → mrtautopilot-12}/mrtautopilot.egg-info/top_level.txt +0 -0
- {mrtautopilot-10 → mrtautopilot-12}/pyproject.toml +0 -0
- {mrtautopilot-10 → mrtautopilot-12}/setup.cfg +0 -0
- {mrtautopilot-10 → mrtautopilot-12}/tests/test_mission.py +0 -0
|
@@ -314,9 +314,9 @@ class Gps2Raw:
|
|
|
314
314
|
self.vdop = None
|
|
315
315
|
|
|
316
316
|
if msg.vel != 0xFFFF:
|
|
317
|
-
self.
|
|
317
|
+
self.speed_mps = msg.vel / 100
|
|
318
318
|
else:
|
|
319
|
-
self.
|
|
319
|
+
self.speed_mps = None
|
|
320
320
|
|
|
321
321
|
if msg.cog != 0xFFFF:
|
|
322
322
|
self.course_deg = msg.cog / 100
|
|
@@ -324,9 +324,9 @@ class Gps2Raw:
|
|
|
324
324
|
self.course_deg = None
|
|
325
325
|
|
|
326
326
|
if msg.satellites_visible != 0xFF:
|
|
327
|
-
self.
|
|
327
|
+
self.num_satellites = msg.satellites_visible
|
|
328
328
|
else:
|
|
329
|
-
self.
|
|
329
|
+
self.num_satellites = None
|
|
330
330
|
|
|
331
331
|
timestamp: datetime.datetime
|
|
332
332
|
fix_type: GpsFixType
|
|
@@ -335,9 +335,9 @@ class Gps2Raw:
|
|
|
335
335
|
altitude_m: Union[float, None]
|
|
336
336
|
hdop: Union[float, None]
|
|
337
337
|
vdop: Union[float, None]
|
|
338
|
-
|
|
338
|
+
speed_mps: Union[float, None]
|
|
339
339
|
course_deg: Union[float, None]
|
|
340
|
-
|
|
340
|
+
num_satellites: Union[int, None]
|
|
341
341
|
|
|
342
342
|
|
|
343
343
|
@dataclass
|
|
@@ -624,6 +624,11 @@ class MavlinkThread:
|
|
|
624
624
|
mrtmavlink.MAV_TYPE_GCS, mrtmavlink.MAV_AUTOPILOT_INVALID, 0, 0, 0
|
|
625
625
|
)
|
|
626
626
|
|
|
627
|
+
def send_mavlink(
|
|
628
|
+
self, msg: mrtmavlink.MAVLink_message, force_mavlink1: bool = False
|
|
629
|
+
) -> None:
|
|
630
|
+
self.loop.call_soon_threadsafe(lambda: self.conn.send(msg, force_mavlink1))
|
|
631
|
+
|
|
627
632
|
def get_parameter(
|
|
628
633
|
self,
|
|
629
634
|
id: str,
|
|
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
|