-
Notifications
You must be signed in to change notification settings - Fork 39
Description
This is an RFC rather than a report of specific defect.
I'd like to discuss possible simplification of the code.
(i) As of now, the library uses special hacked version of BLEAK library (which I see as maintenance problem).
(ii) It looks that recent BLEAK supports also Windows and MacOS (or soon it will), therefore we can
remove support for other backends in bricknil and depend solely on BLEAK.
(iii) Once we do (i) we can remove dependency on curio and run everything in a single thread using asyncio (which is part of python3)
(iv) Once we do (iii), we can get rid of multiple "tasks" and message-passing through queue in bleak_interface.py, removing the file altogether.
I prototyped changes for (i) and (iii) and not only it make things (little) simpler but also my 4x4 off-roader is much more responsive (using the original code the reactions are "slow" on my setup)
@virantha, what do you think? Shall it try to push these changes further?