d-ronin / dRonin

The dRonin flight controller software.
http://dronin.org
Other
289 stars 167 forks source link

Python API: Move to asyncio, async, await, etc. #2188

Open mlyle opened 6 years ago

mlyle commented 6 years ago

Since we're on python 3, use the new syntactic sugar, sugar.

tracernz commented 6 years ago

And use exceptions more for error handling? :stuck_out_tongue:

mlyle commented 6 years ago

Hmmmm. This is looking like a pain.

Using yield from looks like it requires way too much of a complexity/performance tax for the factoring improvements it can provide in uavtalk.

It looks like moving to an event loop with asyncio would provide some small factoring improvements.