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/contributing/developer_setup_windows.rst
+56-4Lines changed: 56 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,63 @@
4
4
Building DroneKit-Python on Windows
5
5
===================================
6
6
7
-
The setup for *developing* DroneKit-Python on Windows is almost the same as for *using*
8
-
DroneKit-Python. We therefore recommend that you start by following the instructions in the :ref:`get-started`.
7
+
This article shows how to set up an environment for *developing* DroneKit-Python on Windows.
8
+
9
+
.. tip::
10
+
11
+
If you just want to *use* DroneKit-Python on Windows then easiest way to get started is to use the
12
+
:ref:`Windows Installer <_get_started_install_dk_windows>`. The installer is rebuilt with every patch
13
+
release, so you can always be up to date with the latest features and bug fixes.
14
+
15
+
16
+
Install DroneKit using WinPython command line
17
+
=============================================
18
+
19
+
First set up a command line DroneKit-Python installation using *WinPython*. This Python distribution already includes most of the needed dependencies (though you will need remove *python-dateutil* as the installation comes bundled with a version that does not work with *DroneKit*).
20
+
21
+
The steps to install this package and the most important add-on modules are:
22
+
23
+
#. 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).
24
+
25
+
* Run the installer as an administrator (**Right-click** on file, select **Run as Administrator**).
26
+
* When prompted for the destination location, specify **C:\Program Files (x86)**
27
+
(the default location is under the **Downloads** folder).
28
+
29
+
#. Register the Python that came from *WinPython* as the preferred interpreter for your machine:
30
+
31
+
Open the folder where you installed WinPython, run *WinPython Control Panel* and choose **Advanced/Register Distribution**.
Copy file name to clipboardExpand all lines: docs/guide/getting_started.rst
+86-39Lines changed: 86 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,8 @@ For information on how to set up a vehicle (real and simulated) see:
28
28
Installing DroneKit
29
29
===================
30
30
31
-
*DroneKit* can be installed on Linux, Windows and Mac OSX.
31
+
*DroneKit* can be installed on Linux, Windows and Mac OSX.
32
+
32
33
33
34
.. _getting_started_installing_dronekit_linux:
34
35
@@ -82,43 +83,54 @@ Install DroneKit-Python and its remaining dependencies (including `MAVProxy <htt
82
83
sudo pip install droneapi
83
84
84
85
86
+
.. _get_started_install_dk_windows:
85
87
86
88
Installing DroneKit on Windows
87
89
------------------------------
88
90
89
-
The easiest way to set up DroneKit-Python on Windows is to use the *WinPython* package, which already includes most of the needed dependencies.
90
-
You will need remove *python-dateutil* as the installation comes bundled with a version that does not work with some *DroneKit* dependencies.
91
+
The easiest way to set up DroneKit-Python on Windows is to use the Windows Installer.
92
+
This is applied over the top of the *MAVProxy* Windows installation and includes all needed
93
+
dependencies and the DroneKit-Python examples.
91
94
92
-
The steps to install this package and our add-on modules are:
95
+
.. tip::
93
96
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).
97
+
A new version of the Windows Installer is created with every patch revision.
98
+
Don't forget to update regularly for bug fixes and new features!
99
+
100
+
To install DroneKit-Python using the installer:
99
101
100
-
#. Register the python that came from *WinPython* as the preferred interpreter for your machine:
102
+
#. Download and run the `latest MAVProxy installer <http://firmware.diydrones.com/Tools/MAVProxy/MAVProxySetup-latest.exe>`_
103
+
— accept all prompts.
104
+
#. Download and run the `latest DroneKit installer <https://s3.amazonaws.com/dronekit-installers/windows/dronekit-windows-latest.exe>`_
105
+
— accept all prompts (install in the same location as MAVProxy).
101
106
102
-
Open the folder where you installed WinPython, run *WinPython Control Panel* and choose **Advanced/Register Distribution**.
107
+
The installer packages DroneKit-Python as an application, which is launched by double-clicking an icon
108
+
in the system GUI. After the *MAVProxy prompt* and *console* have started you can
109
+
:ref:`connect to the vehicle <starting-mavproxy_set_link_when_mavproxy_running>` (instead of setting the
110
+
connection when starting *MAVProxy*). You will still need to :ref:`load DroneKit <loading-dronekit>` (not done by the installer
111
+
- see `#267 <https://github.com/dronekit/dronekit-python/issues/267>`_). The examples are copied to :file:`C:\\Program Files (x86)\\MAVProxy\\examples\\`.
To connect to the autopilot once *MAVProxy* has already started use ``link add <connection>`` in the *MAVProxy command prompt*, where ``<connection>``
160
+
takes the same values as ``master`` in the table above. For example, to set up a connection to SITL running on the local computer at port 14550 do:
161
+
162
+
.. code:: bash
163
+
164
+
link add 127.0.0.1:14550
165
+
166
+
If you're connecting using a serial port you may need to first set up the baud rate first (the default is 57600). You can change the default baudrate used for
167
+
new connections as shown:
168
+
169
+
.. code:: bash
170
+
171
+
set baudrate 57600 #Set the default baud rate for new connections (do before calling "link add")
172
+
173
+
See `Link Management <http://tridge.github.io/MAVProxy/link.html>`_ (MAVProxy documentation) for more information.
174
+
175
+
142
176
143
177
144
178
.. _loading-dronekit:
@@ -189,45 +223,55 @@ which reads and writes :ref:`vehicle state and parameter <vehicle-information>`
189
223
190
224
The steps are:
191
225
192
-
#. Get the DroneKit-Python example source code onto your local machine. The easiest way to do this
193
-
is to clone the **dronekit-python** repository from Github.
194
-
226
+
#. Get the DroneKit-Python example source code onto your local machine.
227
+
228
+
The easiest way to do this is to clone the **dronekit-python** repository from Github.
0 commit comments