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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mrtautopilot
3
- Version: 10
3
+ Version: 12
4
4
  Summary: Communicate with the MRT Autopilot Mavlink API
5
5
  Maintainer-email: Nathan Knotts <nathan@magothyrt.com>
6
6
  Project-URL: Homepage, https://www.magothyrt.com/
@@ -1,4 +1,4 @@
1
- __version__ = "10"
1
+ __version__ = "12"
2
2
 
3
3
  from .autopilot import *
4
4
  from .mission import *
@@ -314,9 +314,9 @@ class Gps2Raw:
314
314
  self.vdop = None
315
315
 
316
316
  if msg.vel != 0xFFFF:
317
- self.velocity_mps = msg.vel / 100
317
+ self.speed_mps = msg.vel / 100
318
318
  else:
319
- self.velocity_mps = None
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.num_set = msg.satellites_visible
327
+ self.num_satellites = msg.satellites_visible
328
328
  else:
329
- self.num_set = None
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
- velocity_mps: Union[float, None]
338
+ speed_mps: Union[float, None]
339
339
  course_deg: Union[float, None]
340
- num_set: Union[int, None]
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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mrtautopilot
3
- Version: 10
3
+ Version: 12
4
4
  Summary: Communicate with the MRT Autopilot Mavlink API
5
5
  Maintainer-email: Nathan Knotts <nathan@magothyrt.com>
6
6
  Project-URL: Homepage, https://www.magothyrt.com/
File without changes
File without changes
File without changes