paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Setting flags for build?


From: Felix Ruess
Subject: Re: [Paparazzi-devel] Setting flags for build?
Date: Sun, 1 Sep 2013 18:55:10 +0200

The raw version doesn't use the Parrot SDK and instead reads the raw data from the sensors (and from a connected usb gps, e.g. ublox) and then does the processing as usual in Paparazzi...
Unfortunately there is not much documentation on all of this and the AR_Drone_2 wiki pages pages written by the students are not quite up-to-date...


On Sun, Sep 1, 2013 at 6:43 PM, Ben Laurie <address@hidden> wrote:



On 1 September 2013 17:42, Felix Ruess <address@hidden> wrote:
Ah, and another thing: If you are using the ARDrone2, I would strongly suggest to use the master branch, as there have been several improvements there (mostly for the raw version though).

I was actually on the master branch, but a somewhat old version. I'll update now (and send my fixes if they're still relevant).

What is the raw version? Should I be using it?
 


On Sun, Sep 1, 2013 at 6:36 PM, Felix Ruess <address@hidden> wrote:
Hi Ben,

easiest is to compile from the Paparazzi directory:
make AIRCRAFT=ardrone2_sdk ap.compile
or equivalently:
make -C /home/ben/git-work/paparazzi AIRCRAFT=ardrone2_sdk ap.compile

The main Makefile automatically sets the PAPARAZZI_HOME and PAPARAZZI_SRC environment variables, and if you explicitly specify another Makefile directly (for which there is no need) these are not not automatically set.

Regarding passing extra command line defines: the easiest way is probably to add <define name="FOO" value="BAR"/> to the firmware section of your airframe file, which will be added as a global command line define (-DFOO=BAR). You can also omit the value to get -DFOO.

Hope that helps,...

Cheers, Felix


On Sun, Sep 1, 2013 at 6:00 PM, Ben Laurie <address@hidden> wrote:
I've been debugging the ARDrone stuff (patches soon). It'd be nice to be able to #if the debug code rather than comment it out.

Is there an easy way to -D some flag for the build from the Paparazzi Center?

Also, how do I build from the command line? I tried just using the command line it shows:

make -C /home/ben/git-work/paparazzi -f Makefile.ac AIRCRAFT=ardrone2_sdk ap.compile

But I get:

make: Entering directory `/home/ben/git-work/paparazzi'
-----------------------------------------------------------------------
Paparazzi version v5.0.0_stable-95-g80193d1-dirty
-----------------------------------------------------------------------
ardrone2_sdk
BUILD ardrone2_sdk, TARGET ap
Fatal error: exception Xml.File_not_found("/home/ben/paparazzi/conf/conf.xml")
make: *** [ap.ac_h] Error 2
make: Leaving directory `/home/ben/git-work/paparazzi'


_______________________________________________
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]