Closed lazaro-fh closed 2 years ago
I think you need to make sure that actually two mavsdk_server processes are started in the background.
If you share your full example, I can try to run it and see what is going on.
I assume you have resolved this given there was no response and I'm closing the issue. If not, just comment again here, thanks.
We are trying to launch two drones by means of two threads running the same module in parallel. In this module we perform the connection, arming and takeoff of the drone, but when the second thread tries to arm its drone we get the following error: command denied. This is the creation code of each thread:
mission.start() runs another module called "takeoff.py" with the following code:
however, when we run everything on a single module we have no problem. An example would be if mission.start() executes takeoff(), which is an asynchronous function of the same module where the thread was created. We have a PX4 and a MavSDK for each drone, which are recompiled in each execution. Does anyone know why this happens and how to fix it? Thank you very much