You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2019. It is now read-only.
The kernel interface is very much asynchronous. You write a value, and stuff happens.
Currently, when you want to wait for a sensor or motor, you have to poll it.
I'm currently using this snippet in my code, but maybe we should think about a proper API, possibly using asyncio, Twisted, Gevent, or something else.
Well, an event based system is possible, however, the low level ev3dev system has no such capability as far as I know. Please check ev3dev/ev3dev#104 . So that means either pull by the framework or application. To avoid the unnecessary overhead, I decided to let application to poll the status. After ev3dev system support event, python-ev3 can easy support too. However, I will keep this thread open until we get a work event system.
Activity
topikachu commentedon Dec 26, 2014
Well, an event based system is possible, however, the low level ev3dev system has no such capability as far as I know. Please check ev3dev/ev3dev#104 . So that means either pull by the framework or application. To avoid the unnecessary overhead, I decided to let application to poll the status. After ev3dev system support event, python-ev3 can easy support too. However, I will keep this thread open until we get a work event system.