11 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
9a27eea7a7 [gps][ins] improve gps support for ins filters
- use conveniance functions to access GPS position and speed
- try to improve support of UBX fix status
- gps.h compatible with cpp files
2022-09-28 15:28:15 +02:00
Gautier Hattenberger
f7e16fce9b [modules] move INS from subsystems to modules 2021-11-13 00:48:14 +01:00
Gautier Hattenberger
246de70255 [modules] move AHRS from subsystems to modules 2021-11-13 00:48:14 +01:00
Gautier Hattenberger
23d9957955 Merge pull request #2721 from paparazzi/autopilot_reorg
Autopilot reorg
2021-08-27 10:23:32 +02:00
Gautier Hattenberger
affd433ea0 [ins_invariant] reset state position and speed properly
It prevents the filter to jump to the new position, which can create a
wrong estimation of the accelerometer scale bias.
Aligner is restarted if needed.

Also fix float constants and other small details.
2021-08-24 10:51:58 +02: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
69df254c26 [ins] INS invariant filter can use GPS heading instead of magneto 2019-07-01 13:14:21 +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
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