Description
I need to get telemetry from multiple drones. So I start mavsdk_server for each, connect to them and trying to get telemetry. For some minor number of drones it works, but for more (approximately 10) it gets stuck (none of generators yields). So as for many same tasks for one drone.
The simpliest way to reproduce is to edit telemetry.py example like this:
for i in range(n):
asyncio.ensure_future(print_battery(drone))
It makes no sense to make multiple identical tasks for one drone of cource, but it behaviours the same as one for each drone.
If n=8
it works, if n=12
gets stuck. But if you run one script with n=8
, and one more with n=8
(for other mavsdk_server of cource), they both work. And if you use each subscription from Telemetry plugin once (there more than 12) it works as well.
So I can guess the problem is related to grpc, but don't know how to solve it. Any ideas?