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)
| 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): |
no outgoing calls