Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit e1db393

Browse files
committed
Migrate to new structure and fix up links. Omits best-practise guide
1 parent 44d8800 commit e1db393

24 files changed

+289
-219
lines changed

docs/about/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ After reading, you will understand what the kit offers and the opportunities it
1212

1313
overview
1414
release_notes
15+
migrating
1516
license
1617

1718

docs/about/migrating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The sections below outline the main migration areas.
1919
Installation
2020
============
2121

22-
DKPY 2.0 is now installed from `pip` on all platforms - see :ref:`get-started` for more information.
22+
DKPY 2.0 is now installed from `pip` on all platforms - see :ref:`installing_dronekit` for more information.
2323

2424
Installation is generally simpler than on DK 1.x because there are far fewer dependencies (both MAVProxy and numpy
2525
are no longer needed).

docs/contributing/developer_setup_linux.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Building DroneKit-Python on Linux
55
===================================
66

77
The setup for *developing* DroneKit-Python on Linux is almost the same as for *using*
8-
DroneKit-Python. We therefore recommend that you start by following the instructions in :ref:`Getting Started <getting_started_installing_dronekit_linux>`.
8+
DroneKit-Python. We therefore recommend that you start by following the instructions in
9+
:ref:`installing_dronekit`.
910

1011
When you've got DroneKit and a vehicle (simulated or real) communicating, you can
1112
then build and install your own fork of DroneKit, as discussed below.

docs/contributing/developer_setup_windows.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install DroneKit using WinPython command line
1111
=============================================
1212

1313

14-
First set up a command line DroneKit-Python installation using *WinPython*. This process is the same as described in :ref:`Getting Started <get_started_install_dk_windows>`.
14+
First set up a command line DroneKit-Python installation. We recommend *WinPython* or *ActivePython*, as discussed in :ref:`installing_dronekit`.
1515

1616

1717

docs/develop/coding_standards.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.. _coding_standards:
2+
3+
==========================
4+
Coding Standards
5+
==========================
6+
7+
DroneKit-Python does not impose (or recommend) a particular set of coding standards
8+
for third party code.
9+
10+
Internally we run the `YAPF formatter <https://github.com/google/yapf#introduction>`_
11+
on major releases and we expect contributors to copy the patterns used in similar
12+
code within the existing code base.
13+
14+

docs/develop/index.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
========================
2+
Developing with DroneKit
3+
========================
4+
5+
DroneKit-Python is primarily intended for use on Linux-based :doc:`companion-computers` that travel
6+
on a vehicle and communicate with the autopilot via a serial port. It can also be used
7+
on ground-based computers running Linux, Windows or Mac OSX (communicating using WiFi or a telemetry radio).
8+
9+
During development you'll generally run it on a development computer, communicating with a
10+
:doc:`simulated vehicle<sitl_setup>` running on the same machine (via a UDP connection).
11+
12+
This section contains topics explaining how to develop with DroneKit-Python,
13+
covering subjects like installation, setting up the target vehicle or simulator, best practices
14+
and coding standards.
15+
16+
17+
.. toctree::
18+
:maxdepth: 1
19+
20+
installation
21+
companion-computers
22+
Simulated Vehicle <sitl_setup>
23+
coding_standards

docs/develop/installation.rst

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.. _installing_dronekit:
2+
3+
===================
4+
Installing DroneKit
5+
===================
6+
7+
DroneKit-Python can be installed on a Linux, Mac OSX, or Windows computer that
8+
has *Python 2.7* and can install Python packages from the Internet.
9+
10+
It is installed from **pip** on all platforms:
11+
12+
.. code-block:: bash
13+
14+
pip install dronekit
15+
16+
17+
**Installation notes:**
18+
19+
* Mac and Linux require you prefix the command with ``sudo``.
20+
* On Linux you may need to first install **pip** and **python-dev**:
21+
22+
.. code-block:: bash
23+
24+
sudo apt-get install python-pip python-dev
25+
26+
* :doc:`companion-computers` are likely to run on stripped down versions of Linux. Ensure
27+
you use a variant that supports Python 2.7 and can install Python packages from the Internet.
28+
* Windows does not come with Python by default, but there are
29+
`many distributions available <https://www.python.org/download/alternatives/>`_.
30+
We have tested against:
31+
32+
* `WinPython 2.7 64bit <http://sourceforge.net/projects/winpython/files/WinPython_2.7/>`_ (see
33+
`these instructions for installation and registration <https://github.com/winpython/winpython/wiki/Installation>`_). This is the most tested version.
34+
* `ActiveState ActivePython 2.7 <http://www.activestate.com/activepython/downloads>`_.
35+
* Python 3 is not supported.

docs/examples/channel_overrides.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Running the example
2424
===================
2525

2626
The example can be run as described in :doc:`running_examples` (which in turn assumes that the vehicle
27-
and DroneKit have been set up as described in :ref:`get-started`).
27+
and DroneKit have been set up as described in :ref:`installing_dronekit`).
2828

2929
In summary, after cloning the repository:
3030

docs/examples/create_attribute.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Running the example
3131
===================
3232

3333
The example can be run as described in :doc:`running_examples` (which in turn assumes that the vehicle
34-
and DroneKit have been set up as described in :ref:`get-started`).
34+
and DroneKit have been set up as described in :ref:`installing_dronekit`).
3535

3636
In summary, after cloning the repository:
3737

docs/examples/drone_delivery.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Running the example
2121
===================
2222

2323
The example can be run much as described in :doc:`running_examples` (which in turn assumes that the vehicle
24-
and DroneKit have been set up as described in :ref:`get-started`). The main exception is that you need to
24+
and DroneKit have been set up as described in :ref:`installing_dronekit`). The main exception is that you need to
2525
install the CherryPy dependencies and view the behaviour in a web browser.
2626

2727
If you're using a simulated vehicle remember to :ref:`disable arming checks <disable-arming-checks>` so

0 commit comments

Comments
 (0)