paparazzi-devel
[Top][All Lists]
Advanced

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

[Paparazzi-devel] <include> directive in airframe files


From: Gareth Roberts
Subject: [Paparazzi-devel] <include> directive in airframe files
Date: Fri, 29 Jun 2012 20:37:36 +0100
User-agent: Opera Mail/12.00 (Linux)

Hi all,

I recently noticed the <include href="foo.xml" /> in one of esden's example airframes.

I'd like to use this as I have a bunch of identical aircraft, for which the gains may be slightly different but everything else is identical. I know that if I copy the same file 5 times and change a module import or whatever I'll forget to alter them all.

It appears to work for simple cases (a single section) but when I attempt to drag in more, such as <firmware />, it fails.
For example, in pseudo-xml:

aircraft.xml
<DOCTYPE>
<airframe name="foo">
        <include href="bar_firmware.xml" />
        <include href="bar_modules.xml" />
        ...
        <section name="gains1" />
        <section name="gains2" />
        <section name="moregains2" />
</airframe>

bar_firmware.xml
<firmware />

bar_modules.xml
<modules />

No error is output (if I change an XML filename to something non-existant I do get an error) but the firmware section doesn't get included:
Makefile:39: *** Architecture not set, maybe you forgot to add the target?

Does anyone have any idea why this is, how I can avoid it, and tips for organising multiple identical aircraft? The actual file is here: https://github.com/blutack/paparazzi/blob/v3.9/conf/airframes/UoM/Skywalker_Biker.xml

Cheers,
Gareth



reply via email to

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