mavlink / MAVSDK-Swift

MAVSDK client for Swift.
https://mavsdk.mavlink.io
BSD 3-Clause "New" or "Revised" License
27 stars 24 forks source link

How do I connect multiple drones? #219

Open fanfans1 opened 2 years ago

fanfans1 commented 2 years ago

How do you get information about nearby drones before you connect them? Is it obtained through UDP broadcast? The data obtained by UDP cannot be parsed. mavlink is required to parse the data. Procedure How do multiple drones connect? Do I instantiate multiple mavsdk.startServer(systemAddress: "udp://:14550 ") methods?

JonasVautherin commented 2 years ago

You need to run one MAVSDK instance per drone. So you cannot have them all broadcast on udp://:14550 (instead they should broadcast on different ports).

Does that make sense?

fanfans1 commented 2 years ago

ok thanks

---Original--- From: "Jonas @.> Date: Thu, Nov 3, 2022 18:33 PM To: @.>; Cc: @.**@.>; Subject: Re: [mavlink/MAVSDK-Swift] How do I connect multiple drones? (Issue#219)

You need to run one MAVSDK instance per drone. So you cannot have them all broadcast on udp://:14550 (instead they should broadcast on different ports).

Does that make sense?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

fanfans1 commented 2 years ago

Is there a way to parse drone broadcasts through Mavsdk

---Original--- From: "Jonas @.> Date: Thu, Nov 3, 2022 18:33 PM To: @.>; Cc: @.**@.>; Subject: Re: [mavlink/MAVSDK-Swift] How do I connect multiple drones? (Issue#219)

You need to run one MAVSDK instance per drone. So you cannot have them all broadcast on udp://:14550 (instead they should broadcast on different ports).

Does that make sense?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

JonasVautherin commented 2 years ago

No, not in Swift