Calling MAVSDK async functions inside non-async functions

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Calling MAVSDK async functions inside non-async functions

1,870件の閲覧回数
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 返答(返信)