Skip to content

Fix Lab color space conversion - #789

Open
kairosmeer wants to merge 135 commits into
ev3dev:ev3dev-stretchfrom
kairosmeer:patch-1
Open

kairosmeer wants to merge 135 commits into
ev3dev:ev3dev-stretchfrom
kairosmeer:patch-1

Conversation

@kairosmeer

Copy link
Copy Markdown

In the current Lab conversion the RGB colors are not scaled to [0,1], resulting in the Lab color space being out of scale.

ddemidov and others added 30 commits October 28, 2017 22:25
The print statement was removed with Python3, this change should work
for both Python2 and Python3.
* Remove "connected" attribute

Fixes ev3dev#327

* Fix things

* I'm terrible at both staging and committing everything

* Update error name and text

* Fix things

* Revert GyroBalancer changes

* Strip exception context when device isn't connected
* adds the play_note method and changes duration parameters to seconds

* fixes invalid join() parameter

* fixes wrong delay parameter sanity check and adds a couple of comments
s/counts_per_rot/count_per_rot

See ev3dev#439
* Separate GyroBalancer drive control loop from balance loop

* Add signal handlers and math.pi
Uses the new project structure in sphinx docs, fixes a couple of
docstring issues.

Fixes ev3dev#441
The driver_name arg can be a single value or a list. The list is only needed
if we look for one of many options.
* Rename namespace: ev3dev -> ev3dev2

* Update api_tests.py

* Update sensor imports

* Fix all the things

* Clean up imports

* Fix reference to updated module name
* ev3dev#1026: Sound.speak does not work with double quotes

* Update to use shlex

* Remove shell=true
* "address" argument on LEDs ev3dev#422

* Update git_version.py for ev3dev2 directory

* Improve Led and Leds __str__
* one line import ev3dev#420

Example:

    import ev3dev2.auto as ev3

    ts = ev3.TouchSensor(ev3.INPUT_1)
* Update display for 4.14 kernel

Fixes ev3dev#455
* Initial set of updates to documentation for Stretch

* Remove "indices and tables" section of home page

It seemed pretty useless to me given that we have the "tree" immediately
above it.

* Update navbar link

* Improvements to motor docs

* Add a new SpeedInteger for percentage and improve related docs

* More motor docs improvements

* README updates

* Continue iterating on motor docs and readme

* Update sensor docs page

* Add new section to Stretch upgrade guide on new features

* Attempt to fix docs build

* Add WIP section

* Clean-up and new drive example

* Add docs build validation to Travis

* Update README.rst
This changes the name of the debian package so that the 2.x version can be installed at the same time as the 1.x version. Also update git: to https:
This updates setup.py with a new package name (`python-ev3dev2`), adds 2.x to the description, change the author/email to a shared team name and fixes the GitHub URL.
WasabiFan and others added 29 commits November 23, 2019 18:23
Micropython doesn't handle deep superclass constructors properly, so the _state attribute wasn't initialized.
* Add seconds and elapsed checks to stopwatch

Also did general clean-up.

* Update ev3dev2/stopwatch.py

Co-Authored-By: Matěj Volf <mat.volfik@gmail.com>

* Update ev3dev2/stopwatch.py

Co-Authored-By: Matěj Volf <mat.volfik@gmail.com>

* Improve behavior or restart and add new reset

Co-authored-by: Matěj Volf <mat.volfik@gmail.com>
* Adds Gyro Support to MoveTank

Adds the following gyro supported functions to MoveTank:
- follow_gyro_angle: angle following function that uses the same PID algorithm as the line follower
 to have the robot drive straight
 at a specific angle.
- pivot_gyro: pivots the robot to a specific angle
- calibrate_gyro: flips the mode of the sensor to zero out the gyro to reduce
 chance of drift

* Fixes whitespace

* Fixes some PR feedbac

* Refactors Color and Gyro sensors to be properties

Added explicit color and gyro setters/getters

* Modifies private vars to use single underscore

Addresses code review feedback including:
- making private members use single instead of double underscore
- `wiggle_room` added to  `turn_to_angle_gyro` for user to control accuracy
It seems that RTD is no longer seeing the installed modules with the way we used to do it.
Sphinx 3 seems to break our docs build.
add sleep in `while True` loop to avoid using 100% CPU

See ev3dev#754
In the current Lab conversion the RGB colors are not scaled to [0,1], resulting in the Lab color space being out of scale.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.