Ardrone2_PC_flight, one more PC control

Parrot SDK, Linux SDK, Java, PC, Mac, scripts for Parrot drones... etc.
Post Reply
obelix662000
Up and hovering
Posts: 134
Joined: 31 Oct 2011, 15:53

Ardrone2_PC_flight, one more PC control

Post by obelix662000 » 22 Jan 2013, 18:25

I see January is a month of PC software.

http://www.msh-tools.com/ardrone/index.html

Here is my contribution (ar Drone v.2 only). This is plain win32 program with no use of third party libraries etc. It uses DirectShow for video and can handle any type of Ar Drone Video streams (for video type of streams see e.g. http://www.ardrone-flyers.com/forum/vie ... =41&t=4070 ).
Video settings are adjustable, including codec, bitrate and framerate, performance depends on PC, e.g. my laptop can handle flawlessly maximal allowed 720p mode at 4 mbps and 30fps, my netbook AcerOne can handle only 360p modes. If there is no appropriate codecs installed, there will be a warning message. For example ffdshow decoder (google it) can handle both codecs on any Windows OS.
The program has extended support for joystick, ps3 joypad and keyboard (even sort of proptional control is allowed with keyboard). Setting can be tested precisely before real flight. The program has almost all features of parrot's software, including USB recording, flips etc. Do not forget to click "Start control" on the front pannel before real flight, this allows pass of joystick commands to the toy.

The program was tested on Windows 7, and XP, analog joystick similar to inexpensive 4-axis ($16) http://www.xheli.com/new6chflsico.html and ps3 gamepad

Image
Last edited by obelix662000 on 30 Jan 2013, 03:56, edited 2 times in total.

obelix662000
Up and hovering
Posts: 134
Joined: 31 Oct 2011, 15:53

Re: Ardron2_PC_flight, one more PC control

Post by obelix662000 » 22 Jan 2013, 18:53

Last edited by obelix662000 on 29 May 2013, 06:33, edited 1 time in total.

blackhawkrob
Ready for take off
Posts: 46
Joined: 09 Jan 2013, 15:20
Drone Type: AR.Drone 2

Re: Ardrone2_PC_flight, one more PC control

Post by blackhawkrob » 22 Jan 2013, 23:36

Hmm, looks nice. Will try tomorrow :)

Too bad you're not releasing the source...

Could you at least help me set up the videostream in a C# project? :)

Cheers,
Rob

obelix662000
Up and hovering
Posts: 134
Joined: 31 Oct 2011, 15:53

Re: Ardrone2_PC_flight, one more PC control

Post by obelix662000 » 23 Jan 2013, 16:17

blackhawkrob wrote:Hmm, looks nice. Will try tomorrow :)

Too bad you're not releasing the source...

Could you at least help me set up the videostream in a C# project? :)

Cheers,
Rob
Thanks, I don't think I can help with video because I don't have any experience with C#. Technically you need to write source filter which will take Ar drone video frames, strip the header and send them downstream. When I started first was thinking of using ffmpeg, vlc or other libraries, but finally ended up with directshow. It was completely new for me, but there are good tutorials (as far as I remember for C# also). Here is the paper I like the most: http://www.codeproject.com/Articles/158 ... ive-Source

IIVII
Just flips over
Posts: 58
Joined: 28 Aug 2012, 18:05
Drone Type: Bebop

Re: Ardrone2_PC_flight, one more PC control

Post by IIVII » 25 Jan 2013, 03:21

indeed Jan is the month of PC apps :)

this app looks so complete everything is in there , the only problem is the gamepad :(

at Joystick config only the left stick is recognized ch1 & ch2 , but the right stick Pitch/Roll and the rest of the buttons are not .

the gamepad is the same one shown on this link :

http://www.ebay.com/itm/USB-GamePad-Sin ... 1c2f14a9da" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;

obelix662000
Up and hovering
Posts: 134
Joined: 31 Oct 2011, 15:53

Re: Ardrone2_PC_flight, one more PC control

Post by obelix662000 » 25 Jan 2013, 15:52

this app looks so complete everything is in there , the only problem is the gamepad :(

at Joystick config only the left stick is recognized ch1 & ch2 , but the right stick Pitch/Roll and the rest of the buttons are not
.

Hmm. Could you please try with current version (I made some corrections) and click "calibrate' button to see if there are changes for ch3 and ch4 and buttons. Anyway I'll fix it when I'll get similar joystick.

User avatar
MyNameNotYours
Just flips over
Posts: 64
Joined: 25 Jan 2013, 02:22
Drone Type: AR.Drone 2

Re: Ardrone2_PC_flight, one more PC control

Post by MyNameNotYours » 26 Jan 2013, 19:51

Hello and thank you for the application.

On one of my systems running Win7 I receive an error upon execution.

"A dynamic link library (DLL) Initalization routine failed. ($8007045A).

There's connection to the drone via wifi and the application initially connects, I see the battery percentage value change.

Haven't tried anything beyond that except close the program. Any hints?

User avatar
sebasuke78
Up and hovering
Posts: 148
Joined: 19 Dec 2012, 19:46
Drone Type: AR.Drone 2

Re: Ardrone2_PC_flight, one more PC control

Post by sebasuke78 » 26 Jan 2013, 20:35

awesome a new program for Windows. can you make it happen in MAC version?
i tried this program with winebottler (app to install windows programs)
bt no video feed and control way different. but good job on everything looks awesome!
Image
May The Force be with you

obelix662000
Up and hovering
Posts: 134
Joined: 31 Oct 2011, 15:53

Re: Ardrone2_PC_flight, one more PC control

Post by obelix662000 » 28 Jan 2013, 19:02

MyNameNotYours, sebasuke78,
Unfortunately I cannot help much with the video, I was not able to reproduce any errors on my 3 computers, Dell 17R laptop (Win7 64), AcerOne, XP nad 10-yeqrs old Compaq Presario, Win Xp. All 3 have ffdshow codec pack installed.

I would recommend to install ffdshow (because I'm know for sure it works for both win7 and xp)

Here is a test of video performance on 3 my computers: http://youtu.be/XlX3YfuoaAU

[youtube]http://youtu.be/XlX3YfuoaAU[/youtube]

obelix662000
Up and hovering
Posts: 134
Joined: 31 Oct 2011, 15:53

Re: Ardrone2_PC_flight, one more PC control

Post by obelix662000 » 28 Jan 2013, 19:11

I've fixed bug on lateral movement, and added ps3 gamepad control. Please have a look at the test flight using ps3 and AcerOne netbook, sorry for quality, almost impossible to show both flight and the screen (video mode was H264_360P, 4 Mbps, 30 fps, quality of video significantly better than (MP4/H264_360P, 1 Mbps used by Freeflight on mobile devices)).
Known bug: flip can be performed only once per session, for some reason after first flip drone ignores other flip tries (the flip itself is OK and control is ok). Maybe some reset is needed, I'll have closer look in 3 weeks when I'll be back from vacations.

Test AcerOne PC and PS3: http://youtu.be/c_uqd6mKsxI

[youtube]http://youtu.be/c_uqd6mKsxI[/youtube]

User avatar
MyNameNotYours
Just flips over
Posts: 64
Joined: 25 Jan 2013, 02:22
Drone Type: AR.Drone 2

Re: Ardrone2_PC_flight, one more PC control

Post by MyNameNotYours » 30 Jan 2013, 20:36

I fixed my error. It appears I had a version of ffdshow that the application did not like. Once the old was removed and reinstalled it worked as expected. :) Thank you.

Radu_
Battery Charged
Posts: 5
Joined: 23 Feb 2013, 19:02
Drone Type: AR.Drone 2

Re: Ardrone2_PC_flight, one more PC control

Post by Radu_ » 23 Feb 2013, 21:13

Hi guys,
I'm new here and newly owner of a ArDrone2. I found very interesting experience to obelix662000 for that I thank you very much. But I have some problems that I can't solve:
1. When starting the program I have two error messages exemplified in photographs called M1 and M2.
2. The program starts, but not with accessible buttons "Flight Settings" "Video Settings" Display and "Custom CMD"
3. Once I set the joystick (I use one with 4 axes and 12 buttons) I can't save the settings and I/O message appears foto I-oError. However if you press the arrow changed location, saving is achieved. This is useless, because you can't load setting when start the program.
4. I installed and ffdshow but the video does not appear.
However drone respond OK to joystick to all commands, but I didn't let her fly free.
I would be very grateful if you could help me to solve these problems.
With thanks in advance,
Radu
You do not have the required permissions to view the files attached to this post.

obelix662000
Up and hovering
Posts: 134
Joined: 31 Oct 2011, 15:53

Re: Ardrone2_PC_flight, one more PC control

Post by obelix662000 » 24 Feb 2013, 01:31

Thanks for the input. Unfortunately I'm doing development in my country house on weekends (where my Drone is), so I cannot test any modifications till next Saturday. OK, I'll try to fix the bug without real testing. Let you know ASAP.

obelix662000
Up and hovering
Posts: 134
Joined: 31 Oct 2011, 15:53

Re: Ardrone2_PC_flight, one more PC control

Post by obelix662000 » 24 Feb 2013, 02:35

The problem was decimal separator which is different in the US and outside. I've fixed the bug, please, download newer version from my site. As regards menu items, they should appear automatically when all threads are running, including video.

Radu_
Battery Charged
Posts: 5
Joined: 23 Feb 2013, 19:02
Drone Type: AR.Drone 2

Re: Ardrone2_PC_flight, one more PC control

Post by Radu_ » 24 Feb 2013, 08:16

Thanks obelix662000 for the response so quickly and professionally. I installed the new version of software. Now malfunctioning of joystick is resolved. You can now save and load setting, but the message M2 (photo)still appears only if the drone is connected. However I can't connect the drone after I launched the application.
with thanks,
Radu
You do not have the required permissions to view the files attached to this post.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests