Calling MAVSDK async functions inside non-async functions

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Calling MAVSDK async functions inside non-async functions

1,868 次查看
jissdeodates
Contributor I

Hi all,

I face difficulty in wrapping MAVSDK into my own class which also contains callbacks implemented from other predefined classes. All calls to the functions called from MAVSDK need to be asynced and awaited. Hence, I am not able to call them inside other predefined callback functions as they do not implement asyncio and hence cannot be asynced/awaited.

Has anyone found a workaround for the same? ie, calling an async function inside a non-async function.

Any pointers would be much appreciated.

标记 (3)
0 回复数