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

76 Commits

Author SHA1 Message Date
laurentchar
4f8dbe852c demo.py (#44)
Line #155 should be removed
2020-01-08 10:56:57 +03:00
carnage
d271f251dd Add advanced button handler (#42)
* Add advanced button handler

* Rename pylgbst/extras/advancedbutton.py to examples/advancedbutton/advancedbutton.py

* Create README.md
2019-12-29 11:28:11 +03:00
Andrey Pokhilko
c71befdb66 Update handler signature 2019-12-27 22:36:14 +03:00
Andrey Pohilko
1e48f23f61 Fix issues 2019-12-27 16:22:37 +03:00
Andrey Pohilko
907a2dd561 Cosmetics 2019-12-27 10:34:04 +03:00
Mike C. Fletcher
c955820521 Bunch of Tiny Fixes and Enhancements (#41)
* Use setuptools to allow the extras_require to work in python3.6

This also declares some hidden dependencies for the underlying
connection protocols, but note that they are normally reliant
on system-packaged versions, which is a bit less than optimal.

* In message, on assert of incoming type, note failing type

* In utilities, guard against truncated input.

* In demo allow for specifying different connections and demos on command line

Also addresses a crash in led demo where parameters x and y were not provided
to an empty lamba that was passed in.

* Remove commentted line, apply black formatting

* Raise TypeError when an incorrectly-typed message is received

* Apply black automatic formatting to the utilities module
2019-12-27 10:27:59 +03:00
Andrey Pokhilko
13919d7ecc Restoring bb8 connection 2019-09-07 23:10:50 +03:00
Andrey Pokhilko
3a8d17737b BB8 joystick is ready 2019-08-15 11:43:26 +03:00
Andrey Pokhilko
e1e650220f figured out directions of joystick 2019-08-15 10:54:37 +03:00
Andrey Pokhilko
c9112d8fe4 Progressing 2019-08-14 23:29:08 +03:00
Andrey Pokhilko
bafdf3fc63 Keep researching BB8 and joyystick 2019-08-14 17:09:45 +03:00
Andrey Pokhilko
f3e4a9dbdb Preparing joystick operations 2019-08-14 13:58:55 +03:00
Andrey Pokhilko
3f2b3dcb3a New machine is ready, start creating playground code 2019-08-14 11:05:16 +03:00
Andrey Pokhilko
544aa82cf5 Finish color pinned bot 2019-08-14 11:04:07 +03:00
Andrey Pokhilko
3f19c983c2 Merge branch 'master' of github.com:undera/pylgbst 2019-08-13 15:45:59 +03:00
Andrey Pokhilko
72dd6f0214 Working code 2019-08-05 17:36:35 +03:00
Andrey Pokhilko
66c376b2bd Fixed hardware part for pin machine 2019-08-05 14:11:53 +03:00
Andrey Pokhilko
6da6797374 Working code for BB8 joystick 2019-08-04 23:44:28 +03:00
Andrey Pokhilko
9f347c233f Continue experiments 2019-08-04 12:11:28 +03:00
Andrey Pokhilko
6aec464283 Start preparing BB8-joystick 2019-08-04 11:36:34 +03:00
Tomas Smetana
e60002a728 Fix LED and vision sensor demos (#30) 2019-06-16 09:35:32 +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
3239b3377d cosmetics 2019-04-05 22:08:02 +03:00
Andrey Pohilko
5f9ce688e1 Better automata 2019-04-05 20:56:04 +03:00
Andrey Pohilko
3f47d1ce70 Merge branch 'master' of github.com:undera/pylgbst 2019-03-23 13:50:06 +03:00
Andrey Pohilko
b4f5481fbe Cosmetics 2019-03-23 13:49:50 +03:00
Andrey Pohilko
9ff6d0b4ed change relative import
relates to issue 23
2019-03-19 10:48:41 +03:00
Andrey Pohilko
5f209ac7e6 cosmetics 2019-03-15 18:55:08 +03:00
Andrey Pohilko
e4ed6d3904 Fix #25 2019-03-15 18:52:34 +03:00
Andrey Pohilko
24797cae51 add automata base 2019-03-10 10:44:46 +03:00
Andrey Pohilko
b64fb41572 Async is reserved word 2019-01-06 15:43:10 +03:00
Andrey Pohilko
544e7ed523 One more video 2018-08-03 13:43:26 +03:00
Andrey Pohilko
881ba1d619 Color tracking 2018-08-02 21:37:49 +03:00
Andrey Pohilko
db80492597 handle smile 2018-08-01 18:02:17 +03:00
Andrey Pohilko
4a6f948fc5 A way to check if connection is alive 2018-08-01 15:39:17 +03:00
Andrey Pohilko
c26269af61 save video with rectangle 2018-08-01 15:15:13 +03:00
Andrey Pohilko
3322ad8e4c Record video 2018-08-01 13:55:59 +03:00
Andrey Pohilko
a18808374b Proper example folder 2018-08-01 10:04:10 +03:00
Andrey Pohilko
d889a50aab Improve face tracker 2018-08-01 09:50:39 +03:00
Andrey Pohilko
b4605ae42b Face tracker example 2018-07-31 23:04:29 +03:00
Andrey Pohilko
818715ad65 Remove outdated 2018-07-30 12:46:56 +03:00
Andrey Pohilko
7bfe700a75 Merge branch 'master' of github.com:undera/pylgbst 2018-07-18 13:59:16 +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
8f1e3cb989 Harmonograph demo 2018-07-16 10:32:35 +03:00
Andrey Pohilko
77752460e9 Cosmetics 2018-07-16 10:32:23 +03:00
Gena Batalski
a4ed419156 Minor improvements (#5)
* folder build shoud be ignored

* added hint about gTTS support to get vernie chatter

* determines full path to vernie.commands

* catches tts exception if an empty text passed to `say` command
2018-02-11 15:27:45 +03:00
Andrey Pohilko
7d9bd07cbe Fix limit 2018-02-03 17:58:11 +03:00
Andrey Pohilko
5ded337fe0 Refactoring 2018-02-02 21:34:32 +03:00
Andrey Pohilko
27b9898205 Sorter demo 2018-02-02 16:54:44 +03:00
Andrey Pohilko
e215828ab3 Cosmetics 2017-12-28 19:17:27 +03:00