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
Copy file name to clipboardExpand all lines: docs/develop/sitl_setup.rst
+67-35Lines changed: 67 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -8,17 +8,19 @@ The `SITL (Software In The Loop) <http://dev.ardupilot.com/wiki/simulation-2/sit
8
8
simulator allows you to create and test DroneKit-Python apps without a real vehicle (and from the comfort of
9
9
your own developer desktop!).
10
10
11
-
SITL can run natively on Linux, Mac and Windows, or within a virtual machine. It can be
11
+
SITL can run natively on Linux (x86 architecture only), Mac and Windows, or within a virtual machine. It can be
12
12
installed on the same computer as DroneKit, or on another computer on the same network.
13
13
14
14
The sections below explain how to install and run SITL, and how to connect to DroneKit-Python and Ground
15
15
Stations at the same time.
16
16
17
17
18
+
.. _dronekit_sitl:
19
+
18
20
DroneKit-SITL
19
21
=============
20
22
21
-
DroneKit-SITL is the simplest, fastest and easiest way to run SITL on Windows, Linux, or MAC OSX.
23
+
DroneKit-SITL is the simplest, fastest and easiest way to run SITL on Windows, Linux (x86 architecture only), or Mac OS X.
22
24
It is installed from Python's *pip* tool on all platforms, and works by downloading and running pre-built
23
25
vehicle binaries that are appropriate for the host operating system.
24
26
@@ -27,8 +29,12 @@ the `project on Github <https://github.com/dronekit/dronekit-sitl>`_.
27
29
28
30
.. note::
29
31
30
-
DroneKit-SITL is still relatively experimental. There are only a few pre-built vehicles and
31
-
they have not been as well tested as the native builds.
32
+
DroneKit-SITL is still relatively experimental and there are only a few pre-built vehicles.
33
+
34
+
The binaries are built and tested on Windows 10, Ubuntu Linux, and Mac OS X
35
+
"El Capitan". Binaries are only available for x86 architectures. ARM builds
36
+
(e.g. for RPi) are not supported.
37
+
32
38
Please report any issues on `Github here <https://github.com/dronekit/dronekit-sitl/issues>`_.
33
39
34
40
Installation
@@ -68,42 +74,38 @@ There are a number of other useful arguments:
68
74
dronekit-sitl --reset #Delete all downloaded vehicle binaries.
69
75
dronekit-sitl ./path [args...] #Start SITL instance at target file location.
70
76
71
-
72
-
.. note::
73
-
74
-
DroneKit-SITL also `exposes a Python API <https://github.com/dronekit/dronekit-sitl#api>`_, which you can use to start simulation from within your scripts. This is particularly useful for test code!
75
77
76
78
77
79
.. _connecting_dronekit_sitl:
78
80
79
-
Connecting to (DroneKit-) SITL
80
-
------------------------------
81
+
Connecting to DroneKit-SITL
82
+
---------------------------
81
83
82
-
SITL waits for TCP connections on ``127.0.0.1:5760``. DroneKit-Python scripts running on the same
84
+
DroneKit-SITL waits for TCP connections on ``127.0.0.1:5760``. DroneKit-Python scripts running on the same
83
85
computer can connect to the simulation using the connection string as shown:
You can then connect to a ground station using one UDP address, and DroneKit-Python using the other.
102
-
For example:
102
+
.. _dronekit_sitl_api:
103
103
104
-
.. code-block:: python
104
+
DroneKit-SITL Python API
105
+
------------------------
106
+
107
+
DroneKit-SITL `exposes a Python API <https://github.com/dronekit/dronekit-sitl#api>`_, which you can use to start and control simulation from within your scripts. This is particularly useful for test code and :ref:`examples <example-toc>`.
@@ -117,7 +119,14 @@ Building from source is useful if you want to need to test the latest changes (o
117
119
a version for which DroneKit-SITL does not have pre-built binaries).
118
120
It can also be useful if you have problems getting DroneKit-SITL to work.
119
121
120
-
The following topics from the ArduPilot wiki explain how:
122
+
SITL built from source has a few differences from DroneKit-SITL:
123
+
124
+
* MAVProxy is included and started by default. You can use MAVProxy terminal to control the autopilot.
125
+
* You connect to SITL via UDP on ``127.0.0.1:14550``. You can use MAVProxy's ``output add`` command to add additional ports if needed.
126
+
* You may need to disable arming checks and load autotest parameters to run examples.
127
+
* It is easier to `add a virtual rangefinder <http://dev.ardupilot.com/wiki/using-sitl-for-ardupilot-testing/#adding_a_virtual_rangefinder>`_ and `add a virtual gimbal <http://dev.ardupilot.com/wiki/using-sitl-for-ardupilot-testing/#adding_a_virtual_gimbal>`_ for testing.
128
+
129
+
The following topics from the ArduPilot wiki explain how to set up Native SITL builds:
121
130
122
131
* `Setting up SITL on Linux <http://dev.ardupilot.com/wiki/setting-up-sitl-on-linux/>`_
123
132
* `Setting up SITL on Windows <http://dev.ardupilot.com/wiki/simulation-2/sitl-simulator-software-in-the-loop/sitl-native-on-windows/>`_
@@ -129,24 +138,38 @@ The following topics from the ArduPilot wiki explain how:
129
138
Connecting an additional Ground Station
130
139
=======================================
131
140
132
-
You can connect a ground station to an unused port to which messages
133
-
are being forwarded. You can forward messages to additional ports
134
-
when you start *MAVProxy* using the using ``-out``
0 commit comments