10 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
Fabien-B
7954fa63df [utils] Add circular buffer. (#3038) 2023-07-12 14:18:29 +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
Ewoud Smeur
d366b21475 math functions and high pass filter (#2142)
* math functions and high pass filter

high pass filter uses doubles to avoid numerical errors

* determinant check

Also reverse order such that output comes first in the argument list

* removed function prototypes
2017-10-31 00:25:36 +01:00
kirkscheper
df91322a19 [math] added and updated utm helper funtions 2016-04-25 10:49:10 +02:00
Felix Ruess
f3ee56d862 [tests] fix math tests 2015-01-02 11:39:38 +01:00
Felix Ruess
f2b9ce5a90 [tests] add first tests for state interface
and quiet some build output
2014-12-08 11:09:24 +01:00
Felix Ruess
8f375b9284 [tests] add/move some geodetic tests 2014-12-05 15:58:38 +01:00
Felix Ruess
da5de54450 [tests] add libpprzmath.so to LD_LIBRARY_PATH for running tests 2014-11-24 18:55:52 +01:00
Felix Ruess
f7ae72dcb3 [tests] skeleton for testing math lib with libtap
using [libtap](https://github.com/zorgnax/libtap) to create a [TAP](http://testanything.org) (TestAnythingProtocol) producer.
You can also run the test (if already compiled) with prove:
```
prove --exec '' tests/math/test_pprz_math.run
```
2014-11-24 17:17:58 +01:00