Commit Graph

16 Commits

Author SHA1 Message Date
Gautier Hattenberger 62646d68de Modules recommends and suggests (#3005)
Add two new items in module's dependency:
- recommends: a recommended module tells the sorting algo that if the module is found, it should be sorted accordingly. It is useful for optional dependencies, like shell or mission in some modules
- suggests: if a functionality is not provided by the user, a module can suggest a list of modules that can provide them. It is a convenient way to have "default" modules.

As a result the former autoload node is removed and replaced by suggested modules.
2023-03-07 17:14:15 +01:00
Gautier Hattenberger f7e16fce9b [modules] move INS from subsystems to modules 2021-11-13 00:48:14 +01:00
Gautier Hattenberger a4632c33ca [modules] move gps from subsystems to modules 2021-11-13 00:48:14 +01:00
Gautier Hattenberger d02ec5ba98 [modules] update modules XML for proper dependcies and tasks 2021-07-27 13:34:23 +02:00
Gautier Hattenberger 494e3f3ad9 [tests] add a compilation test node to modules (#2653)
When adding a test node to a makefile section, with required compilation
flags, include and other options, all the files (not arch dependent
files) can be compiled with a TAP compatible program, included in the
standard tests of the CI servers.
Not all module's XML files are converted, but a large part of the most
important parts are already covered. More will be added later. The
number of tested airframes (full compilation of all targets) have been
reduced to speed the CI compile time but still covers the relevant
architecture and boards.
The main benefit is that the overall coverage is already better than
before as previous test aircraft were compiling more or less the same
part of the airborne code, while this new mechanism is more efficient to
test modules not included in any config.
2021-02-08 17:24:19 +01:00
Christophe De Wagter a419195ca2 [XSens] Move parser variables to struct, and call the decoder after parsing. (#2277) 2018-06-27 00:18:18 +02:00
Felix Ruess b97e23bdb3 [ins] convert ins subsystems to modules (#1740)
and get rid of ins calls in main and register functions
2016-06-25 17:45:30 +02:00
Felix Ruess 8b43408753 [modules] use string type where appropriate 2016-03-31 22:40:47 +02:00
Felix Ruess 2ab27171fb convert ins_xsens to module 2016-03-30 21:46:09 +02:00
Felix Ruess 8be5c426b6 [modules] start pimping dependencies
Start working on #940

This replaces
```xml
<depend require="foo|bar" conflict="baz"/>
```
with
```xml
<depends>foo,bar</depends>
<conflicts>baz</conflicts>
```

and now allows to specify OR dependencies with | (pipe) similaro to Debian depends:
```xml
<depends>foo,bar,this|that</depends>
```
which would depend on: foo AND bar AND (this OR that)
2014-12-08 10:33:28 +01:00
Felix Ruess 3c50828daf [fixedwing] explicit ins subsystem and fix for xsens ins
* renamed the ins_float to ins_alt_float
* to use the vertical filter add <subsystem name="ins" type="alt_float"/>
* should also fix the imu/ins xsens subsystems
There is still a lot of cleaning up to do, especially for the ins modules.
2012-09-19 18:33:44 +02:00
Gautier Hattenberger bcaba7c720 [modules documentation] Add a doc node to module
modules developpers can provide
- a description of the module
- a list of the configuration variables and flags (configure and define)
- a list of sections to add to the airframe file
2012-04-24 09:29:12 +02:00
Christophe De Wagter 88209b7a19 ins.h from modules is different so it is renamed 2010-10-28 12:31:15 +00:00
Felix Ruess 8620ecb82b moved ins to general subsystem 2010-10-26 18:03:28 +00:00
Gautier Hattenberger 49829f42dc fix frequency and baudrate 2009-07-28 09:42:39 +00:00
Gautier Hattenberger 7314a39ecb add new module for the xsens ins 2009-07-23 14:59:45 +00:00