MCPcopy
hub / github.com/dronekit/dronekit-python / send_mavlink

Method send_mavlink

dronekit/__init__.py:2043–2057  ·  view source on GitHub ↗

This method is used to send raw MAVLink "custom messages" to the vehicle. The function can send arbitrary messages/commands to the connected vehicle at any time and in any vehicle mode. It is particularly useful for controlling vehicles outside of missions (for example, in

(self, message)

Source from the content-addressed store, hash-verified

2041 self.groundspeed = groundspeed
2042
2043 def send_mavlink(self, message):
2044 """
2045 This method is used to send raw MAVLink "custom messages" to the vehicle.
2046
2047 The function can send arbitrary messages/commands to the connected vehicle at any time and in any vehicle mode.
2048 It is particularly useful for controlling vehicles outside of missions (for example, in GUIDED mode).
2049
2050 The :py:func:`message_factory <dronekit.Vehicle.message_factory>` is used to create messages in the appropriate format.
2051
2052 For more information see the guide topic: :ref:`guided_mode_how_to_send_commands`.
2053
2054 :param message: A ``MAVLink_message`` instance, created using :py:func:`message_factory <dronekit.Vehicle.message_factory>`.
2055 There is need to specify the system id, component id or sequence number of messages as the API will set these appropriately.
2056 """
2057 self._master.mav.send(message)
2058
2059 @property
2060 def message_factory(self):

Callers 14

groundspeedMethod · 0.95
airspeedMethod · 0.95
home_locationMethod · 0.95
rotateMethod · 0.80
target_locationMethod · 0.80
releaseMethod · 0.80
condition_yawFunction · 0.80
set_roiFunction · 0.80
send_ned_velocityFunction · 0.80

Calls

no outgoing calls

Tested by 1

send_testpacketsFunction · 0.64