1
0
mirror of https://github.com/undera/pylgbst.git synced 2020-11-18 19:37:26 -08:00

73 Commits

Author SHA1 Message Date
Andrey Pokhilko
c47fb2326a
Offer alternative fix for start_power commands (#53)
* Offer alternative fix

* Fix test

* Dummy commit

* fix

* Decrease coverage

* fix test

* turn into comments

* Empty it

* Rollback experiment
2020-03-07 09:36:30 +03:00
laurentchar
69b234b924
peripheral:EncodedMotor: fixed goto_position() (#50) 2020-02-08 15:18:15 +03:00
laurentchar
d1019ac9f4
peripheral:Motor: fixed _speed_abs for END_STATE_BRAKE (#48) 2020-01-30 22:03:33 +03:00
Andrey Pokhilko
17e22bf810 Use command codes in write direct 2020-01-28 20:53:28 +03:00
laurentchar
300268a2ab Update peripherals.py (#45) 2020-01-09 13:45:02 +03:00
Andrey Pokhilko
c71befdb66 Update handler signature 2019-12-27 22:36:14 +03:00
Andrey Pokhilko
6a49f5c840 Enable subscribing to LED notifications 2019-12-27 22:18:51 +03:00
Andrey Pokhilko
64776eadc8 Fix issue #40 2019-12-26 14:37:23 +03:00
Andrey Pokhilko
9abe2495b0 Fix issue #39 2019-12-26 14:31:51 +03:00
Mariusz Woloszyn
cde1bea308 Orange color fix (#35) 2019-11-12 20:36:14 +02:00
Andrey Pokhilko
f3e4a9dbdb Preparing joystick operations 2019-08-14 13:58:55 +03:00
Andrey Pokhilko
6ad116fe1c Change button callback into 3-state 2019-08-14 11:04:29 +03:00
Andrey Pokhilko
6da6797374 Working code for BB8 joystick 2019-08-04 23:44:28 +03:00
Andrey Pokhilko
32eecac1a6
Make v1.0, based on official docs (#27)
* It's HUB ID

* Rename file

* Working with official doc

* Some progress

* AttachedIO msg

* device action impl

* some better device alert impl

* restructuring

* Some port commands handled

* Some command feedback waiting

* Some more request-reply things

* Some more request-reply things

* Reworked msg classes

* Getting back to UTs

* Getting back to UTs

* Facing sync lock problems

* Facing sync lock problems

* Testing it

* Covering more with tests

* handle actions

* Hub class is almost covered

* done coverage for Hub

* done coverage for MoveHub

* Button is tested

* remove debug server from examples

* Current and voltage tested

* color sensor basic test

* cover tilt sensor

* motor sensor tested

* constant motor

* motor is tested

* hold_speed impl for motor

* motor commands recorded

* some cleanup

* some cleanup

* some cleanup

* debug

* debug

* FIX a bug

* acc/dec profiles figured out

* UT motor ops

* UT motor ops

* Get rid of weird piggyback

* fix UT

* Fix encoding?

* fix test mb

* More robust

* Checked demo works

* cosmetics

* cosmetics

* Maybe better test

* fetching and decoding some device caps

* describing devs

* describing devs works

* Applying modes we've learned

* Simple and extensible dev attach

* Reworking peripherals based on modes

* Applying modes we've learned

* implemented getting sensor data

* fixed port subscribe

* Added led out cmds on vision sensor

* Worked on color-distance sensor

* Introduce some locking for consistency

* Improved it all

* Travis flags

* improve

* improve

* improve docs
2019-05-30 17:02:50 +03:00
Andrey Pohilko
b64fb41572 Async is reserved word 2019-01-06 15:43:10 +03:00
Andrey Pohilko
881ba1d619 Color tracking 2018-08-02 21:37:49 +03:00
Andrey Pohilko
4a6f948fc5 A way to check if connection is alive 2018-08-01 15:39:17 +03:00
Andrey Pokhilko
16b1612cc6
Review pygatt (#11)
* Cosmetics

* Harmonograph demo

* Cleanup

* Original

* Original

* Cosmetics

* Original file

* Fixes

* cosmetics

* separate classes

* Cosmetics

* Cosmetics

* fix tests

* Remove plotter tests

* Add bluegiga

* Rename it

* Progress

* Fix tests

* Cosmetics

* Found a way for pygatt!

* Playing with gatt

* Fix hung subscribe

* rename class

* add test

* skeleton for autodetect

* safer order

* Fix tests

* Fix test

* Add dbus install

* another try

* 2

* 3

* 34

* 6

* 7

* Isolate some tests

* 8

* back to roots

* Try more

* 9

* Help

* rep

* site-packs

* Fix?

* Py3 come on

* dbus

* busss

* dev null!

* Fix test

* Cleanup

* Fix tests

* Fix after review

* add package

* FIx package paths

* Cosmetics

* Update

* More doc
2018-07-18 13:57:58 +03:00
Andrey Pohilko
737d955da4 Cosmetics 2018-02-02 16:54:53 +03:00
Andrey Pohilko
83be117966 Drop port data in case handler is too slow 2018-01-28 08:39:26 +03:00
Andrey Pohilko
039a5030fd Fix release issues 2017-12-29 10:47:19 +03:00
Andrey Pohilko
d19cab08d8 Some protections 2017-12-26 18:14:01 +03:00
Andrey Pohilko
c6582103c9 Experiment with angled movements 2017-12-24 12:06:42 +03:00
Andrey Pohilko
2e2e36d560 Protect motor from going nuts in angled mode 2017-12-24 11:32:42 +03:00
Andrey Pohilko
6be14c8c44 Shrink problematic wait 2017-12-20 13:00:35 +03:00
Andrey Pohilko
acdf631b66 getting hub info 2017-09-23 14:09:53 +03:00
Andrey Pohilko
a5b0a567df refactoring 2017-09-23 10:58:27 +03:00
Andrey Pohilko
b77831f225 Get rid of six as dependency 2017-09-23 10:45:05 +03:00
Andrey Pohilko
bd85c2bdd2 Cosmetics 2017-09-22 19:35:16 +03:00
Andrey Pohilko
4fffe1fb5f Changed battery stuff 2017-09-22 19:16:44 +03:00
Andrey Pohilko
b518e42d53 Add battery demo 2017-09-21 22:15:54 +03:00
Andrey Pohilko
c4aaa9fd6d Clarify tilt sensor constants 2017-09-21 21:52:13 +03:00
Andrey Pohilko
ab83408dee Fix tilt sensor functioning 2017-09-21 20:36:42 +03:00
Andrey Pohilko
369da2ce6a Fix run away game 2017-09-21 13:55:29 +03:00
Andrey Pohilko
a6047b3279 Fixing vernie 2017-09-21 13:42:20 +03:00
Andrey Pohilko
c255a38b43 Work on vernie demo polish 2017-09-20 19:34:42 +03:00
Andrey Pohilko
cfc0a64ffe Documenting motors 2017-09-20 15:07:23 +03:00
Andrey Pohilko
df9af9e8da TILT sensor documented 2017-09-20 11:31:58 +03:00
Andrey Pohilko
ca9a781c9d Fix doc 2017-09-20 11:04:03 +03:00
Andrey Pohilko
da0bb5ad05 CDS documented 2017-09-20 10:57:55 +03:00
Andrey Pohilko
62ce93a8e5 documenting peripherals 2017-09-20 09:56:25 +03:00
Andrey Pohilko
06cfd9c419 Refactoring 2017-09-19 21:48:53 +03:00
Andrey Pohilko
4ab378499e Found problem of stuck notifications 2017-09-19 16:34:39 +03:00
Andrey Pohilko
a73a2ce5f5 Vernie android remote control 2017-09-18 21:45:45 +03:00
Andrey Pohilko
f3a5aab7ef Revealed constant motor mode 2017-09-18 18:50:56 +03:00
Andrey Pohilko
2536ed1249 Experimenting... 2017-09-17 22:03:38 +03:00
Andrey Pohilko
05d55cbb78 Working on documenting it 2017-09-17 21:12:59 +03:00
Andrey Pohilko
1171ee2668 implement thread per device queue 2017-09-16 20:27:56 +03:00
Andrey Pohilko
8560b7df9b Add some text-to-speech into vernie demo script 2017-09-16 14:52:37 +03:00
Andrey Pohilko
fa0ee2d77a handle push button 2017-09-16 00:29:10 +03:00