AR Drone raw protocols

Mirumod, Macgyver, hull, cam, propeller, leg, cross, ball bearing mods... etc.
Post Reply
MAPGPS
Strange wobble
Posts: 201
Joined: 26 Oct 2010, 03:03
Has thanked: 0
Been thanked: 0

Re: AR Drone raw protocols

Post by MAPGPS » 02 Jul 2011, 14:14

MAPGPS wrote:/dev/video0 and /dev/video1 are V4L2 camera interface, with YUV420 format.
I just modified a V4L2 test app on AR.Drone to dump one video frame from:
front camera (/dev/video0) with 640*480
bottom camera (/dev/video1) with 176*144

And use YUV Player Deluxe:
http://www.yuvplayer.com/" onclick="window.open(this.href);return false;
To display the raw YUV video frame in file test.yuv on Windows XP.

The raw image of 640*480 has nice resolution, far better than what I have ever seen from my AR.Drone camera!

Code: Select all

# cd /data/video
# killall program.elf
# ./v4l2_test
driver = p6_camif.0, card = p6_camif, version = 5, capabilities = 0x4000001
Buffer count = 4
Buffer: index = 0
# ls -l *.yuv
-rw-r--r--    1 root     root       460800 Jan  1 00:01 test.yuv
#
You do not have the required permissions to view the files attached to this post.

danimes
Battery Charged
Posts: 7
Joined: 23 Jun 2011, 16:13
Has thanked: 0
Been thanked: 0

Re: AR Drone raw protocols

Post by danimes » 03 Jul 2011, 04:37

program.elf compresses the video so it won't delay commands so doing this manually will produce far better videos.
The problem is with getting them. The wifi isn't fast enough and it doesn't have enough space to save anything (ssh+php is already suffocating mine).
Do you know of a way to connect a USB flash drive to it without recompiling the kernel?

MAPGPS
Strange wobble
Posts: 201
Joined: 26 Oct 2010, 03:03
Has thanked: 0
Been thanked: 0

Re: AR Drone raw protocols

Post by MAPGPS » 03 Jul 2011, 05:17

danimes wrote:Do you know of a way to connect a USB flash drive to it without recompiling the kernel?
Refer to "USB Disk on AR.Drone":
http://www.ardrone-flyers.com/forum/vie ... ?f=8&t=829" onclick="window.open(this.href);return false;

Just load new modules to support it, without recompiling the kernel.
I have tried 2GB and 8GB on AR.Drone.

D0023R
Newcomer
Posts: 1
Joined: 05 Aug 2011, 15:22
Has thanked: 0
Been thanked: 0

Re: AR Drone raw protocols

Post by D0023R » 08 Aug 2011, 15:29

@MAPGPS

I tried to use vanilla v4l test code but it does not initialize properly. I would like to see how you managed to setup the v4l interface but unfortunately I am not allowed to retrieve your zip file.
Could you kindly provide another URL to this file?

Rgds

Edit: now I can download the file, apparently a first post is needed before allowing access to attachments. Cheers,

kyelok
Newcomer
Posts: 4
Joined: 18 May 2012, 19:52
Has thanked: 0
Been thanked: 0

Re: AR Drone raw protocols

Post by kyelok » 18 May 2012, 19:53

@MAPGPS
Thanks for the V4L code! :)

fyp2014
Newcomer
Posts: 2
Joined: 24 Feb 2014, 23:47
Drone Type: AR.Drone 2
Has thanked: 0
Been thanked: 0

Re: AR Drone raw protocols

Post by fyp2014 » 24 Feb 2014, 23:49

[Post to retrieve zip file from MAPGPS]

jeffallen
Newcomer
Posts: 1
Joined: 14 Oct 2014, 22:09
Drone Type: AR.Drone 2
Has thanked: 0
Been thanked: 0

Re: AR AR.Drone raw protocols

Post by jeffallen » 14 Oct 2014, 22:20

First post! So I can download the attachment.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests