You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
The first parameter above specifies the target address (in this case the loopback
22
+
The first parameter specifies the target address (in this case the loopback
21
23
address for UDP port 14550). See :ref:`get_started_connect_string` for the strings to use for
22
-
other common vehicles.
24
+
other common vehicles.
25
+
26
+
The second parameter (``wait_ready``) is used to determine whether ``connect()`` returns immediately
27
+
on connection or if it waits until *some* vehicle parameters and attributes are populated. In most cases you
28
+
should use ``wait_ready=True`` to wait on the default set of parameters.
29
+
30
+
:py:func:`connect() <dronekit.connect>` also has arguments for setting the baud rate,
31
+
the length of the connection timeout, and/or to use
32
+
a :ref:`custom vehicle class <example_create_attribute>`.
23
33
24
-
:py:func:`connect() <dronekit.connect>` also has arguments for setting the baud rate, whether ``connect()`` returns immediately or waits until vehicle parameters and attributes are populated (:py:func:`wait_ready=True <dronekit.Vehicle.wait_ready>`),
25
-
the length of the connection timeout, and/or to use a :ref:`custom vehicle class <example_create_attribute>`.
34
+
There is more documentation on all of the parameters in the :py:func:`API Reference <dronekit.connect>`.
26
35
27
36
37
+
.. _connection_string_options:
28
38
.. _get_started_connect_string:
29
39
30
40
Connection string options
@@ -61,3 +71,15 @@ The table below shows *connection strings* you can use for some of the more comm
61
71
The default baud rate may not be appropriate for all connection types (this may be the cause
62
72
if you can connect via a GCS but not DroneKit).
63
73
74
+
75
+
Connecting to multiple vehicles
76
+
===============================
77
+
78
+
You can control multiple vehicles from within a single script by calling
79
+
:py:func:`connect() <dronekit.connect>` for each vehicle
80
+
with the appropriate :ref:`connection strings <connection_string_options>`.
81
+
82
+
The returned :py:class:`Vehicle <dronekit.Vehicle>` objects are independent of
83
+
each other and can be separately used to control their respective
0 commit comments