paparazzi-devel
[Top][All Lists]
Advanced

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

[Paparazzi-devel] [new feature] converting subsystems to modules


From: Gautier Hattenberger
Subject: [Paparazzi-devel] [new feature] converting subsystems to modules
Date: Tue, 16 Feb 2016 19:21:22 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

Hello everyone,

Since version 5.8 and in latest master code, it is possible to declare modules the same way than subsystems, and safely rename subsystems to modules. See https://github.com/paparazzi/paparazzi/pull/1471

This is an important step towards merging subsystems and modules, allowing in particular to use the convenient xml description of modules with its embedded documentation and settings.

So if you want to start converting your airframes (it should be the standard at some point anyway), here are some key points:
- modules can be loaded from firmware section like subsystems.
- last point includes filtering on target.
- subsystems can be renamed to modules (even if conversion is not done yet).
- completely backward compatible (for now).
- if you ask for a subsystem, the result is the same as before, but the subsystem has to exist.
- if you ask for a modules with load in the modules node, same as before and the module has to exist.
- if you ask for a module with module in modules node, same as load but with extended format possibilities:
  - <module name="bla_boo.xml"/>
  - <module name="bla_boo"/>
  - <module name="bla" type="boo"/>
- if you ask for a module with module in firmware (or target inside a firmware), it will look for the module and fall-back to subsystem if module file doesn't exist, and you can use the same extended formats like above.
- the modules node can be removed unless a specific non-default main_freq attribute needs to be specified (default is autopilot main frequency).

The recommended format is the later one: only using modules as children of the firmware (or target) node, and by splitting name and type when appropriate.

Some examples are provided: the microjet airframe in the examples (https://github.com/paparazzi/paparazzi/blob/master/conf/airframes/examples/microjet.xml#L159) and the airframes in the ENAC directory (https://github.com/paparazzi/paparazzi/tree/master/conf/airframes/ENAC). More should come.

Please report any troubles while converting your airframes to this new format.

Best Regards,


Gautier for the Paparazzi Dev Team

-- 
Gautier Hattenberger
Assistant-Professor in Flight Mechanics and UAV Systems
Developper of the Paparazzi UAV project
École Nationale de l'Aviation Civile (ENAC)
7 avenue Edouard-Belin CS 54005 - 31055 Toulouse Cedex 4 - France
Tel: +33 5 62 17 42 11
www.enac.fr
paparazziuav.org

reply via email to

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