Skip to content
Merged

2.0.0 #480

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Changelog

## Version 2.0.0 (2015-11-23)

### New Features:

* Renamed library and package from DroneAPI to DroneKit on pip
* DroneKit Python is now a standalone library and no longer requires use of MAVProxy
* Connect multiple vehicles in one script by creating separate vehicle instances
* Removed NumPy, ProtoBuf as dependencies
* Add MAVLink message listeners using `add_message_listener` methods
* Added `on_attribute` and `on_message` function decorator shorthands
* Added `mount_status`, `system_status`, `ekf_ok`, `is_armable`, `heading`
* Made settable `groundspeed`, `airspeed`
* Moved `dronekit.lib` entries to root package `dronekit`
* Added `parameters.set` and `parameters.get` for fine-tuned parameter access
* `parameters` now observable and iterable (#442)
* Added `last_heartbeat` attribute, updated every event loop with time since last heartbeat (#451)
* Await attributes through `wait_ready` method and `connect` method parameter
* Adds subclassable Vehicle class, used by `vehicle_class` parameter in `connect`

### Updated Features:

* local_connect renamed to connect(), accepting a connection path, link configuration, and timeout settings
* Removed `.set_mavrx_callback`. Use `vehicle.on_message('*', obj)` methods
* Renamed `add_attribute_observer` methods to `add_attribute_listener`, etc. (#420)
* Renamed `wait_init` and `wait_valid` to `wait_ready`
* Split `home_location` is a separate attribute from `commands` waypoint array
* Moved RC channels into `.channels` object (#427)
* Split location information into `local_frame`, `global_frame`, and `global_relative_frame` (and removed `is_relative`) (#445)
* Renamed `flush` to `commands.upload`, as it only impacts waypoints (#276)
* `commands.goto` and `commands.takeoff` renamed to `simple_goto` and `simple_takeoff`

### Bug Fixes:

* `armed` and `mode` attributes updated constantly (#60, #446)
* Parameter setting times out (#12)
* `battery` access can throw exception (#298)
* Vehicle.location reports incorrect is_relative value for Copter (#130)
* Excess arming message when already armed
89 changes: 61 additions & 28 deletions docs/about/github_latest_release.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,63 @@
.. This document was auto-generated by the get_release_notes.py script using latest-release information from github

Release 1.5.0 (August 12, 2015)
===============================


**Features:**

* Added methods to unset `mavlink_callback`. (#115, #240)
* Publishing scripts now live in `scripts/` (#259)

**Documentation:**

* Documented clearing of `mavlink_callback`. (#245)

Source Code
-----------


Source code is available `here <https://github.com/dronekit/dronekit-python/releases/tag/v1.5.0>`_.

* View `**commits** included in this release <https://github.com/dronekit/dronekit-python/compare/v1.4.3...v1.5.0>`_
* View `**bugs** closed by this release <https://github.com/dronekit/dronekit-python/issues?utf8=%E2%9C%93&q=is%3Aclosed+created%3A%3E2015-08-10+is%3Aissue+>`_
* View `**pull requests** merged into this release <https://github.com/dronekit/dronekit-python/pulls?utf8=%E2%9C%93&q=is%3Amerged+created%3A%3E2015-08-10+is%3Apr+>`_

Notes
-----


Thanks to @hamishwillee, @mrpollo, @tcr3dr
Changelog
=========

Version 2.0.0 (2015-11-23)
--------------------------

New Features:
~~~~~~~~~~~~~

- Renamed library and package from DroneAPI to DroneKit on pip
- DroneKit Python is now a standalone library and no longer requires
use of MAVProxy
- Connect multiple vehicles in one script by creating separate vehicle
instances
- Removed NumPy, ProtoBuf as dependencies
- Add MAVLink message listeners using ``add_message_listener`` methods
- Added ``on_attribute`` and ``on_message`` function decorator
shorthands
- Added ``mount_status``, ``system_status``, ``ekf_ok``,
``is_armable``, ``heading``
- Made settable ``groundspeed``, ``airspeed``
- Moved ``dronekit.lib`` entries to root package ``dronekit``
- Added ``parameters.set`` and ``parameters.get`` for fine-tuned
parameter access
- ``parameters`` now observable and iterable (`#442 <https://github.com/dronekit/dronekit-python/pulls/#44>`_)
- Added ``last_heartbeat`` attribute, updated every event loop with
time since last heartbeat (`#451 <https://github.com/dronekit/dronekit-python/pulls/#45>`_)
- Await attributes through ``wait_ready`` method and ``connect`` method
parameter
- Adds subclassable Vehicle class, used by ``vehicle_class`` parameter
in ``connect``

Updated Features:
~~~~~~~~~~~~~~~~~

- local\_connect renamed to connect(), accepting a connection path,
link configuration, and timeout settings
- Removed ``.set_mavrx_callback``. Use ``vehicle.on_message('*', obj)``
methods
- Renamed ``add_attribute_observer`` methods to
``add_attribute_listener``, etc. (`#420 <https://github.com/dronekit/dronekit-python/pulls/#42>`_)
- Renamed ``wait_init`` and ``wait_valid`` to ``wait_ready``
- Split ``home_location`` is a separate attribute from ``commands``
waypoint array
- Moved RC channels into ``.channels`` object (`#427 <https://github.com/dronekit/dronekit-python/pulls/#42>`_)
- Split location information into ``local_frame``, ``global_frame``,
and ``global_relative_frame`` (and removed ``is_relative``) (`#445 <https://github.com/dronekit/dronekit-python/pulls/#44>`_)
- Renamed ``flush`` to ``commands.upload``, as it only impacts
waypoints (`#276 <https://github.com/dronekit/dronekit-python/pulls/#27>`_)
- ``commands.goto`` and ``commands.takeoff`` renamed to ``simple_goto``
and ``simple_takeoff``

Bug Fixes:
~~~~~~~~~~

- ``armed`` and ``mode`` attributes updated constantly (`#60 <https://github.com/dronekit/dronekit-python/pulls/#6>`_, `#446 <https://github.com/dronekit/dronekit-python/pulls/#44>`_)
- Parameter setting times out (`#12 <https://github.com/dronekit/dronekit-python/pulls/#1>`_)
- ``battery`` access can throw exception (`#298 <https://github.com/dronekit/dronekit-python/pulls/#29>`_)
- Vehicle.location reports incorrect is\_relative value for Copter
(`#130 <https://github.com/dronekit/dronekit-python/pulls/#13>`_)
- Excess arming message when already armed
110 changes: 0 additions & 110 deletions scripts/get_release_notes.py

This file was deleted.

21 changes: 1 addition & 20 deletions scripts/update-docs.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
#!/bin/bash

cd $(dirname $0)
cd ..

rm -r /tmp/autodocs
set -e
python ./setup.py build
echo Switching to doc tree
cd docs
make html
cp -a _build/html /tmp/autodocs
cd ..
git checkout gh-pages
cp -a /tmp/autodocs/* .
set +e
find . | xargs git add
set -e
git commit -m "Update docs"
git push
git checkout -f master

ssh dronekit.io "./update_python.sh"
37 changes: 37 additions & 0 deletions scripts/update-releasenotes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env python

"""
This script gets the release notes, converts it from markdown to
reStructured Text format, and writes it to a text file.
The text file can be auto-imported by Sphinx into the official release notes.
"""

import os
from pypandoc import convert
from optparse import OptionParser
import re

curpath = os.path.realpath(os.path.dirname(__file__))

#parser options
parser = OptionParser(version="%prog 1.0.0", usage="Usage: %prog [options] version")
parser.add_option("-i" , "--input", dest="input", default=os.path.join(curpath, "../CHANGELOG.md"), help="Input file")
parser.add_option("-f" , "--file", dest="file", default=os.path.join(curpath, "../docs/about/github_latest_release.txt"), help="Output file")

(options, args) = parser.parse_args()

rst_content = convert(options.input, 'rst')

# Hyperlink Github issues
rst_content = re.sub(r'#\d+', lambda m: '`' + m.group() + ' <https://github.com/dronekit/dronekit-python/pulls/' + m.group()[:-1] + '>`_', rst_content)

# Prefix with some documentation
rst_content = ".. This document was auto-generated by the get_release_notes.py script using latest-release information from github \n\n" + rst_content

release_notes_file = open(options.file,'w')
release_notes_file.write(rst_content)
release_notes_file.close()

print 'complete.'

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, Extension
import platform

version = '2.0.0rc13'
version = '2.0.0'

setup(name='dronekit',
zip_safe=True,
Expand All @@ -16,7 +16,7 @@
],
author_email='tim@3drobotics.com, kevinh@geeksville.com',
classifiers=[
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
Expand Down