paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Ardrone2 Camera operation


From: John Mares
Subject: Re: [Paparazzi-devel] Ardrone2 Camera operation
Date: Sat, 01 Mar 2014 08:37:10 -0800
User-agent: Microsoft-MacOutlook/14.13.0.110805

Has anyone found a cross compiler that works via macports for use on macbook?  I posted a “bug report” on the macports site, but I’ve heard nothing yet.  It sure would be great to run my ardrone from my macbook.

From: Freek van Tienen <address@hidden>
Reply-To: Paparazzi UAV devel list <address@hidden>
Date: Sat, 1 Mar 2014 14:32:59 +0100
To: Paparazzi UAV devel list <address@hidden>
Subject: Re: [Paparazzi-devel] Ardrone2 Camera operation

The main problem with the "arm-linux-gnueabi-gcc" from Ubuntu 12.04 LTS is that it has a different LIBC version than the original ARDrone 2.
I have no clue on how to easily fix that issue to use a different LIBC version when needed. The only easy fix is to use the codesourcery crosscompiler.

Btw. Tnx for the cross compiler fix Felix


2014-03-01 13:53 GMT+01:00 Felix Ruess <address@hidden>:
The command in the ardrone2_gstreamer Makefie would probably be better changed to something like:

CROSS_COMPILER := $(shell which arm-linux-gnueabi-gcc || which arm-none-linux-gnueabi-gcc)
install:
sudo apt-get install scratchbox2 qemu gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad
@echo Setting up with cross compiler $(CROSS_COMPILER)
sb2-init -c qemu-arm armv7 $(CROSS_COMPILER)

Cheers, Felix


On Sat, Mar 1, 2014 at 11:23 AM, Stephen L Hulme <address@hidden> wrote:
Hi Oswald

I must thank you for a very helpful post.

Instruction #s were crucial.
5. vim ardrone2_gstreamer/Makefile
6. adjust path to arm-linux-gnueabi- cross compiler was key.

In my case: /usr/bin/arm-linux-gnueabi-gcc

Unfortunately, Ubuntu 12.04 LTS seems not to support:

13. execute the first command from [2]4), gst-launch playbin ...

ibva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/i386-linux-gnu/dri/i915_drv_video.so
libva: va_openDriver() returns -1

ERROR: Caught a segmentation fault while loading plugin file:
/usr/lib/gstreamer-0.10/libgstffmpeg.so

Please either:
- remove it and restart.
- run with --gst-disable-segtrap --gst-disable-registry-fork and debug.
address@hidden:~$

Nonetheless, the alternate [2]4) command worked a treat.


Regards

Stephen


On Sat, 2014-03-01 at 3.0 AM am512:29 +1300, oswald Berthold wrote:

-----Original Message----- From: oswald berthold
Sent: Saturday, March 01, 2014 3:05 AM
To: Paparazzi UAV devel list
Subject: Re: [Paparazzi-devel] Ardrone2 Camera operation


Stephen L Hulme writes:

> Hi Guys
>
> Does anyone have a well defined set of procedures and the associated
> commands they can share to view video output from the Ardrone2?
>
> I have incessantly tried a mix of these to definitive sources, without
> success, using Ubuntu 12.04 LTS:
>
> http://lists.gnu.org/archive/html/paparazzi-devel/2013-11/msg00170.html
>
> http://wiki.paparazziuav.org/wiki/AR_Drone_2/getting_started#Live_Video

hi, i just tested video streaming from the drone, using [1], [2]

1. cd sw/ext
2. git clone https://github.com/tudelft/ardrone2_vision.git
3. cd ardrone2_vision
4. sudo apt-get install scratchbox2
4a. make
4b. make pulls ardrone2_gstreamer submodule, then fails, ignore
5. vim ardrone2_gstreamer/Makefile
6. adjust path to arm-linux-gnueabi- cross compiler
7. make install
8. fails with configure error for libtool, ignore
9. make drone
10. uploads stuff
11. telnet drone
12. execute the /opt/arm/gst/... commandline from [2]3)
13. execute the first command from [2]4), gst-launch playbin ...

writing this, i now realize that the ardrone2_vision module
- contains actual gst plugin demos doing useful stuff with the vision
   input
- ardrone2_gstreamer just contains the drone-side gstreamer stuff for
   capturing and downstreaming

[1] http://wiki.paparazziuav.org/wiki/AR_Drone_2/vision_start
[2] http://wiki.paparazziuav.org/wiki/AR_Drone_2/getting_started#Live_Video

> PS - just out of interest – it would seem it is impossible to activate
> NAV take off after the ardrone2 has been been booted with the Joystick
> program active in the flight session. The Mode defaults to ATT at the
> outset and the spring loaded game pad throttle gimbal will not remain
> in full throttle position to facilitate further flight once NAV mode
> is selected.
>
> Am I missing something, since without the Joystick the ardrone2
> defaults to NAV at start up and undertakes autonomous basic flight
> plan P1 to P2 and return commands etc without issue?

experienced something similar. when executing the flight plan with
joystick and input2ivy connected and running, the throttle will be taken
from the joystick while all the lateral commands come from the
flightplan. i guess its because we're in AUTO1, switching to AUTO2
should change this?

bst, opt

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


_______________________________________________ Paparazzi-devel mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]