Skip to content
This repository has been archived by the owner on Feb 21, 2018. It is now read-only.

Multiple Ar Drones #13

Closed
Geaper opened this issue May 13, 2016 · 19 comments
Closed

Multiple Ar Drones #13

Geaper opened this issue May 13, 2016 · 19 comments

Comments

@Geaper
Copy link

Geaper commented May 13, 2016

Hello again Ruslan.

I managed to make both work but the only problem is that I can only send commands one at the time.

I have to _droneClient.Stop() in order to send commands to _droneClient2 and vise-versa. Isnt there any way u can help me solve this? U created this code, must be really easy for you. :(

@Ruslan-B
Copy link
Owner

Ok just some google magic:
AutonomyLab/ardrone_autonomy#56 (comment)
Socket is already occupied.
But you need to fix it yourself - how I have no clue but can assume in NavdataAcquisition class.

Start your application in debug and check debug output - most likely you will find some network exceptions happing during connection.

Cheers,
Ruslan

On 14 May 2016, at 07:09, Geaper [email protected] wrote:

Hello again Ruslan.

I managed to make both work but the only problem is that I can only send commands one at the time.

I have to _droneClient.Stop() in order to send commands to _droneClient2 and vise-versa. Isnt there any way u can help me solve this? U created this code, must be really easy for you. :(


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

@Ruslan-B
Copy link
Owner

P.S. It is not easy.

@Geaper
Copy link
Author

Geaper commented May 13, 2016

Maybe I can pay you to solve me this problem? :/ do you have paypal?

@Ruslan-B
Copy link
Owner

Haha funny. How do you imagine this? In order to do so I need at least two drones.

Cheers,
Ruslan

On 14 mei 2016, at 08:13, Geaper [email protected] wrote:

Maybe I can pay you to solve me this problem? :/ do you have paypal?


You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub #13 (comment)

@Geaper
Copy link
Author

Geaper commented May 13, 2016

:( if u look at the code u dont know how to resolve it? Even if I open 2 different applications it doesnt work. It only works if I use 2 different PCs connected to the same router. So it's 100% port problem.

@Ruslan-B
Copy link
Owner

oh...you terrible, read about UDP sockets, they are none sharable resources.

@Geaper
Copy link
Author

Geaper commented May 13, 2016

it's very hard? :( so my only chance is to use ROS?

@Geaper
Copy link
Author

Geaper commented May 13, 2016

Don't you think it's very strange that the video and navdata works perfectly but only takeoff, land etc commands dont work on the same PC?

@Ruslan-B
Copy link
Owner

it requires drones you do have and (small?) fix in NavdataAcquisition class with respect to UdpClient.

@Ruslan-B
Copy link
Owner

may be you will read thoroughly link I sent?

@Geaper
Copy link
Author

Geaper commented May 13, 2016

I have to admit I am not the best programmer ^^ I ask kindly for ur help and time. The best I can do is pay you for ur time or give you some PC games if u play ;)

@Geaper
Copy link
Author

Geaper commented May 13, 2016

I have 2 drones if u want we can use teamviewer.

@Geaper
Copy link
Author

Geaper commented May 13, 2016

OMGGGGGGGGGGGGGGGGGGGGGG IT'S WORKINGGGGGGGGGGGGGGG

@Geaper
Copy link
Author

Geaper commented May 13, 2016

OMG IM CRYING

@Geaper
Copy link
Author

Geaper commented May 13, 2016

I JUST DELETED ONE WORD AND IT STARTED WORKING!!! IM BEST PROGRAMMER EUROPE!

@Geaper
Copy link
Author

Geaper commented May 13, 2016

var udpClient = new UdpClient(CommandPort)) to var udpClient = new UdpClient())

@Geaper
Copy link
Author

Geaper commented May 13, 2016

Who would have though that Visual Studio showed you debug errors.

@Ruslan-B
Copy link
Owner

Better learn how to. Maybe in few weeks I can take a look, I'm on vacation right now only with my phone on me. Good luck then.

@Ruslan-B
Copy link
Owner

Nice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants