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/about/overview.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Open source community
13
13
DroneKit-Python is an open source and community-driven project.
14
14
15
15
You can find all the source code on `Github here <https://github.com/diydrones/dronekit-python>`_ and check out our permissive :doc:`Apache v2 Licence <license>`.
16
-
If you want to join the community, then see our :doc:`contributing page<contributing>` for lots of ideas on how you can help.
16
+
If you want to join the community, then see our :doc:`contributing section<contributing>` for lots of ideas on how you can help.
Copy file name to clipboardExpand all lines: docs/guide/getting_started.rst
+22-51Lines changed: 22 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -4,28 +4,24 @@
4
4
Getting Started
5
5
===============
6
6
7
-
DroneKit-Python apps are typically run on Linux-based :ref:`companion computers <supported-companion-computers>` that travel on the vehicle and communicate with the autopilot via a serial port. However, it is usually easier to first prototype your app on a standard Mac, Windows, or Linux computer using a simulated autopilot. The instructions in this document apply to both scenarios.
7
+
DroneKit-Python apps are typically run on Linux-based *companion computers* that travel
8
+
on the vehicle and communicate with the autopilot via a serial port. However, during development it is usually easier to
9
+
prototype apps on a standard Mac, Windows, or Linux computer using a *simulated* autopilot.
8
10
9
-
.. tip:: If you want to develop for *DroneKit* on Windows using a simulated autopilot, our :ref:`quick-start` shows how to get up and running fast!
10
11
12
+
This topic explains how to set up and run DroneKit-Python (within MAVProxy) on the different host operating systems
13
+
and then run a basic DroneKit app.
11
14
12
-
Setting up the vehicle/autopilot
13
-
=================================
14
15
15
-
The topic :ref:`supported-companion-computers` has links to a number of tested hardware/software configurations for onboard Linux computers. These
16
-
include information about how to set up the hardware and physically connect to the vehicle.
17
16
18
-
If you wish to use a simulated vehicle, the Software-In-The-Loop (SITL) environment can be used to simulate a Copter, Plane, or Rover. It runs natively on Linux,
19
-
but can also run on Linux hosted in a virtual machine:
20
17
21
-
* `Setting up SITL on Linux <http://dev.ardupilot.com/wiki/setting-up-sitl-on-linux/>`_ (for Linux).
22
-
* :ref:`QuickStart: Set up the simulated vehicle <vagrant-sitl-from-full-image>` (for Windows or Mac OSX).
18
+
Setting up the vehicle/autopilot
19
+
================================
23
20
24
-
.. note::
21
+
For information on how to set up a vehicle (real and simulated) see:
25
22
26
-
The method used in the QuickStart is fast and reliable because it uses Vagrant to load an image that is pre-built and fully configured with SITL.
27
-
Other approaches are described in the wiki topics `Setting up SITL using Vagrant <http://dev.ardupilot.com/wiki/simulation-2/sitl-simulator-software-in-the-loop/setting-up-sitl-using-vagrant/>`_
28
-
and `Setting up SITL on Windows <http://dev.ardupilot.com/wiki/simulation-2/sitl-simulator-software-in-the-loop/setting-up-sitl-on-windows/>`_.
23
+
* :ref:`supported-companion-computers` for links to tested hardware/software configurations for a number of onboard Linux computers.
24
+
* :ref:`sitle_setup` for links explaining how to set up a simulated vehicle for Copter, Plane, or Rover.
29
25
30
26
31
27
@@ -70,6 +66,7 @@ If you're on Mac OSX, you can use `Homebrew <http://brew.sh/>`_ to install *WXMa
70
66
71
67
brew tap homebrew/science
72
68
brew install wxmac wxpython opencv
69
+
73
70
74
71
Uninstall *python-dateutil* (OSX and Windows come bundled with a version that is not supported for some dependencies):
75
72
@@ -94,15 +91,19 @@ You will need remove *python-dateutil* as the installation comes bundled with a
94
91
95
92
The steps to install this package and our add-on modules are:
96
93
97
-
1. Run the correct `WinPython installer <http://sourceforge.net/projects/winpython/files/WinPython_2.7/2.7.6.4/>`_ (**v2.7**) for your platform (win32 vs win64)
94
+
#. Download and run the correct `WinPython installer <http://sourceforge.net/projects/winpython/files/WinPython_2.7/2.7.6.4/>`_ (**v2.7**) for your platform (win32 vs win64).
95
+
96
+
* Run the installer as an administrator (**Right-click** on file, select **Run as Administrator**).
97
+
* When prompted for the destination location, specify **C:\Program Files (x86)**
98
+
(the default location is under the Downloads folder).
98
99
99
-
2. Register the python that came from *WinPython* as the preferred interpreter for your machine:
100
+
#. Register the python that came from *WinPython* as the preferred interpreter for your machine:
100
101
101
102
Open the folder where you installed WinPython, run *WinPython Control Panel* and choose **Advanced/Register Distribution**.
@@ -145,8 +146,9 @@ For other connection options see the `MAVProxy documentation <http://tridge.gith
145
146
Loading DroneKit
146
147
================
147
148
148
-
*DroneKit* is implemented as a *MAVProxy* module. You can automatically load this module into *MAVProxy*
149
-
by `adding it to the startup script <http://tridge.github.io/MAVProxy/mavinit.html>`_ (**mavinit.scr**).
149
+
*DroneKit* is implemented as a *MAVProxy* module (MAVProxy is installed automatically with DroneKit).
150
+
The best way to load the *DroneKit* module into *MAVProxy* is to
151
+
`add it to the startup script <http://tridge.github.io/MAVProxy/mavinit.html>`_ (**mavinit.scr**).
150
152
151
153
Linux/MAC OSX:
152
154
@@ -213,34 +215,3 @@ The output should look something like that shown below
213
215
Waiting for mode change ...
214
216
Got MAVLink msg: COMMAND_ACK {command : 11, result : 0}
215
217
...
216
-
217
-
218
-
219
-
.. _viewing_uav_on_map:
220
-
221
-
Watching the action
222
-
====================
223
-
224
-
Watching your DroneKit script run inside *MAVProxy* is useful, but you can go one step further and watch the behaviour of your simulated vehicle in *Mission Planner*.
225
-
226
-
To do this you first need to get SITL to output to an additional UDP port of your computer:
227
-
228
-
* Find the network IP address of your Windows computer (you can get this by running *ipconfig* in the *Windows Command Prompt*).
229
-
* In the command prompt *for your simulated environment* (SITL), add the IP address of the host computer (e.g. 192.168.2.10) and an unused port (e.g. 145502) as an output:
230
-
231
-
.. code:: bash
232
-
233
-
output add 192.168.2.10:14552
234
-
235
-
Then connect Mission Planner to this UDP port:
236
-
237
-
* `Download and install Mission Planner <http://ardupilot.com/downloads/?did=82>`_
238
-
* Ensure the selection list at the top right of the Mission Planner screen says *UDP* and then select the **Connect** button next to it.
239
-
When prompted, enter the port number (in this case 14552).
240
-
241
-
.. figure:: MissionPlanner_ConnectPort.png
242
-
:width:50 %
243
-
244
-
Mission Planner: Listen Port Dialog
245
-
246
-
After connecting, vehicle parameters will be loaded into *Mission Planner* and the vehicle is displayed on the map.
0 commit comments