14 Commits

Author SHA1 Message Date
Gautier Hattenberger
dfd8e93927 State interface input filter (#3409)
* [generator] generate unique ID and names table for modules
* [state] add accessors for the state origin
* [state] don't access directly to state origin, use getters
* [state] filter inputs with module ID
* [ahrs] convert AHRS modules to state input filter
- selection of ahrs with settings from each module
- init functions for each ahrs modules
- remove old chimu
* update unit test
* [ins] decoupled INS implementation
To allow multiple INS at the same time:
- remove weak functions from ins.c
- remove the INS_TYPE_H define
- use ABI message to trigger INS reset
* [state] protect for c++
2024-12-03 22:34:27 +01:00
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
7676436132 fix settings path 2021-11-13 01:07:42 +01:00
Gautier Hattenberger
246de70255 [modules] move AHRS 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
Gautier Hattenberger
bfb678dc01 add missing doc 2019-06-30 16:48:44 +02:00
Gautier Hattenberger
02a5d3961d [ahrs] add filter on accel heuristic of DCM AHRS
the same filter is already applied in the int_quat ahrs and can prevent
incorrect measurement rejection when strong structural vibrations
increase the IMU noise
2019-06-30 16:48:44 +02:00
Felix Ruess
a3a5fce5a4 [modules][ahrs] make sure the board defaults for AHRS_ALIGNER_LED are used 2016-12-15 00:15:26 +01:00
Gautier Hattenberger
8ebbbdd07b [ahrs] fix typo in config files 2016-11-15 15:30:21 +01:00
Gautier Hattenberger
f7fde5a8d4 [module] ins_neutrals settings not needed any more for ahrs 2016-09-26 15:26:00 +02:00
Felix Ruess
bcf5106ee3 [modules] update doc for ahrs modules 2016-09-20 16:04:11 +02:00
Felix Ruess
1da855f408 [ahrs] move settings to modules 2016-09-20 14:12:32 +02:00
Felix Ruess
492824f3f0 [ahrs] convert ahrs subsystems to modules 2016-09-20 13:59:12 +02:00