Skip to content
Merged
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
122 changes: 3 additions & 119 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,121 +1,5 @@
python-ev3dev (1.0.0) stable; urgency=medium
python-ev3dev2 (2.0.0) stable; urgency=medium

[Denis Demidov]
* Add constants for color values to color sensor class
* Update documentation on motors
* Add getters to check state of motors
* Implement BeaconSeeker class
* Fix scaling of floating-point values from sensors
Initial release for ev3dev-stretch.

[Eric Pascual]
* Add Sound.play_song method

[Stefan Sauer]
* Make sound commands cancelable

[Maximilian Nöthe]
* Add tuples for sensor modes

[Daniel Walton]
* Add wait_until_not_moving for motors

-- Denis Demidov <dennis.demidov@gmail.com> Tue, 05 Sep 2017 16:50:20 +0300

python-ev3dev (0.8.1) stable; urgency=medium

[Kaelin Laundry]
* Documentation updates

[Thomas Watson]
* Use speed instead of duty cycle in EXPLOR3R/auto-drive.py

[Denis Demidov]
* Provide Sound.set_volume(pct)
* Implement Sound.get_volume()
* Documentation updates

[Daniel Walton]
* Documentation updates
* Update utils to python3
* Clean up MINDCUB3R demo

[Pepijn de Vos]
* Check for non-existing device attributes

[Stefan Sauer]
* Fix inverted button logic for the latest kernel

[@craigsammisutherland]
* Added a function to list all the connected sensors

-- Denis Demidov <dennis.demidov@gmail.com> Mon, 06 Feb 2017 09:27:21 +0300

python-ev3dev (0.8.0) stable; urgency=medium

[Denis Demidov]
* Add option to not set mode before reading sensor value
* Return a tuple for multiple values from a sensor property
* Add ColorSensor.raw() method to get all color channels at once
* Merge NXTMotor functionality into LargeMotor class and remove NXTMotor
* Distribute fonts from xfonts-75dpi in PIL format and expose them in
code
* Replace special sensor methods with properties for the sake of consistency
(breaking change!)
* Provide waiting functions for motors.
* Make implementation of Led timer-based trigger more robust.

-- Denis Demidov <dennis.demidov@gmail.com> Thu, 03 Nov 2016 19:18:49 +0300

python-ev3dev (0.7.0) stable; urgency=medium

[Denis Demidov]
* Support "-13-ev3dev" and newer kernels.
* Rename FirgelliL1250Motor and FirgelliL12100Motor to ActuonixL1250Motor
and ActuonixL12100Motor.
* Allow passing espeak options to Sound.speak
* Make sure that device classes connect to devices of the right
type (driver name)
* Fix fatal error due to calling an undefined function in
some property setters, such as LED triggers

[Daniel Walton]
* Add "__version__" property.
* Add ev3dev/helper.py with classes for Tanks, Motors, Web UI, etc.
* Add ev3dev/GyroBalancer.py for robots that use a gyroscope.

[Donald Webster]
* Fix port names on BrickPi.

[Frank Busse]
* Fix bad division logic in display classes.

[Kaelin Laundry]
* Fix fatal error when a requested sysfs device class hasn't been
populated yet.

-- Denis Demidov <dennis.demidov@gmail.com> Fri, 30 Sep 2016 21:29:28 +0300

python-ev3dev (0.7.0~rc1) stable; urgency=medium

* Drop python 2.x support.
* Performance improvements for reading/writing sysfs attributes.
* Updates for breaking ev3dev kernel changes.

-- David Lechner <david@lechnology.com> Mon, 25 Jul 2016 21:13:43 -0500

python-ev3dev (0.6.0) stable; urgency=medium

[Ralph Hempel]
* Change port_name to address.

[Denis Demidov]
* Restore python3 compatibility
* Implement device enumeration functions

-- David Lechner <david@lechnology.com> Tue, 29 Dec 2015 23:05:39 -0600

python-ev3dev (0.5.0) stable; urgency=low

* Initial Release.

-- David Lechner <david@lechnology.com> Tue, 10 Nov 2015 21:30:53 -0600
--
3 changes: 3 additions & 0 deletions debian/gbp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[DEFAULT]
debian-branch=ev3dev-stretch
debian-tag=ev3dev-stretch/%(version)s
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will require you to change the branch name from stretch to ev3dev-stretch in order to build the package using gbp.

Since we will have both a 1.x and 2.x in ev3dev-strech, I was thinking of suggesting that this repository have ev3dev-stretch-1.x and ev3dev-stretch-2.x branches, in which case this would need to be changed to debian-branch=ev3dev-stretch-2.x (tag line doesn't need to be changed - and probably best if it isn't changed).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the branch to stretch to match the repo. It might make more sense to switch the branch names to ev3dev-{stretch, jessie} to match other repos, but I'm don't particularly care.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making them all the same (ev3dev-stretch) would be my inclination, but you have the parallel 1.x and 2.x branches here, so calling this branch stretch-2.x might make more sense, perhaps?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be opposed to ev3dev-stretch-1.x and ev3dev-stretch? Or perhaps ev3dev-stretch-legacy for the 1.x series? My hope is that I can avoid typing -2.x if it isn't necessary.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First option sounds fine. (If you make ev3dev-stretch the default branch on GitHub, you should never have to type it in anyways 😉 .)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First option sounds fine.

I just pushed the new branches and deleted the old stretch[-1.x] branches. I don't have admin access on this repo though; could you switch the default branch to ev3dev-jessie?

If you make ev3dev-stretch the default branch on GitHub, you should never have to type it in anyways 😉

We'll do that once we release the first stretch version, I think. If everyone's running code from the jessie branch I'd rather make that the default -- once there's Stretch code out in the wild that changes.

21 changes: 21 additions & 0 deletions debian/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
#
# Maintainer script for publishing releases.

set -e

source=$(dpkg-parsechangelog -S Source)
version=$(dpkg-parsechangelog -S Version)
distribution=$(dpkg-parsechangelog -S Distribution)
codename=$(debian-distro-info --codename --${distribution})

OS=debian DIST=${codename} ARCH=amd64 pbuilder-ev3dev build
OS=raspbian DIST=${codename} ARCH=armhf pbuilder-ev3dev build

debsign ~/pbuilder-ev3dev/debian/${codename}-amd64/${source}_${version}_amd64.changes
debsign ~/pbuilder-ev3dev/raspbian/${codename}-armhf/${source}_${version}_armhf.changes

dput ev3dev-debian ~/pbuilder-ev3dev/debian/${codename}-amd64/${source}_${version}_amd64.changes
dput ev3dev-raspbian ~/pbuilder-ev3dev/raspbian/${codename}-armhf/${source}_${version}_armhf.changes

gbp buildpackage --git-tag-only
21 changes: 21 additions & 0 deletions ev3dev2/_platform/brickpi3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
from collections import OrderedDict

OUTPUT_A = 'spi0.1:MA'
OUTPUT_B = 'spi0.1:MB'
OUTPUT_C = 'spi0.1:MC'
OUTPUT_D = 'spi0.1:MD'

INPUT_1 = 'spi0.1:S1'
INPUT_2 = 'spi0.1:S2'
INPUT_3 = 'spi0.1:S3'
INPUT_4 = 'spi0.1:S4'

BUTTONS_FILENAME = None
EVDEV_DEVICE_NAME = None

LEDS = OrderedDict()
LEDS['blue_led'] = 'led0:blue:brick-status'

LED_GROUPS = OrderedDict()
LED_GROUPS['LED'] = ('blue_led',)

LED_COLORS = OrderedDict()
LED_COLORS['BLACK'] = (0,)
LED_COLORS['BLUE'] = (1,)
18 changes: 9 additions & 9 deletions ev3dev2/_platform/ev3.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@

from collections import OrderedDict

OUTPUT_A = 'outA'
OUTPUT_B = 'outB'
OUTPUT_C = 'outC'
OUTPUT_D = 'outD'

INPUT_1 = 'in1'
INPUT_2 = 'in2'
INPUT_3 = 'in3'
INPUT_4 = 'in4'
OUTPUT_A = 'ev3-ports:outA'
OUTPUT_B = 'ev3-ports:outB'
OUTPUT_C = 'ev3-ports:outC'
OUTPUT_D = 'ev3-ports:outD'

INPUT_1 = 'ev3-ports:in1'
INPUT_2 = 'ev3-ports:in2'
INPUT_3 = 'ev3-ports:in3'
INPUT_4 = 'ev3-ports:in4'

BUTTONS_FILENAME = '/dev/input/by-path/platform-gpio_keys-event'
EVDEV_DEVICE_NAME = 'EV3 brick buttons'
Expand Down
37 changes: 20 additions & 17 deletions ev3dev2/_platform/pistorms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@
"""
from collections import OrderedDict

OUTPUT_A = 'pistorms:BBM1'
OUTPUT_B = 'pistorms:BBM2'
OUTPUT_C = 'pistorms:BAM2'
OUTPUT_D = 'pistorms:BAM1'
OUTPUT_A = 'pistorms:BAM1'
OUTPUT_B = 'pistorms:BAM2'
OUTPUT_C = 'pistorms:BBM1'
OUTPUT_D = 'pistorms:BBM2'

INPUT_1 = 'pistorms:BBS1'
INPUT_2 = 'pistorms:BBS2'
INPUT_3 = 'pistorms:BAS2'
INPUT_4 = 'pistorms:BAS1'
INPUT_1 = 'pistorms:BAS1'
INPUT_2 = 'pistorms:BAS2'
INPUT_3 = 'pistorms:BBS1'
INPUT_4 = 'pistorms:BBS2'


BUTTONS_FILENAME = None
EVDEV_DEVICE_NAME = None
BUTTONS_FILENAME = '/dev/input/by-path/platform-3f804000.i2c-event'
EVDEV_DEVICE_NAME = 'PiStorms'


LEDS = OrderedDict()
LEDS['red_left'] = 'pistorms:BA:red:brick-status'
LEDS['green_left'] = 'pistorms:BA:green:brick-statu'
LEDS['blue_left'] = 'pistorms:BA:blue:brick-status'
LEDS['red_right'] = 'pistorms:BB:red:brick-status'
LEDS['green_right'] = 'pistorms:BB:green:brick-statu'
LEDS['blue_right'] = 'pistorms:BB:blue:brick-status'
LEDS['red_left'] = 'pistorms:BB:red:brick-status'
LEDS['red_right'] = 'pistorms:BA:red:brick-status'
LEDS['green_left'] = 'pistorms:BB:green:brick-status'
LEDS['green_right'] = 'pistorms:BA:green:brick-status'
LEDS['blue_left'] = 'pistorms:BB:blue:brick-status'
LEDS['blue_right'] = 'pistorms:BA:blue:brick-status'

LED_GROUPS = OrderedDict()
LED_GROUPS['LEFT'] = ('red_left', 'green_left', 'blue_left')
Expand All @@ -35,4 +35,7 @@
LED_COLORS['BLACK'] = (0, 0, 0)
LED_COLORS['RED'] = (1, 0, 0)
LED_COLORS['GREEN'] = (0, 1, 0)
LED_COLORS['BLUE'] = (0, 1, 1)
LED_COLORS['BLUE'] = (0, 0, 1)
LED_COLORS['YELLOW'] = (1, 1, 0)
LED_COLORS['CYAN'] = (0, 1, 1)
LED_COLORS['MAGENTA'] = (1, 0, 1)