Commit Graph

11 Commits

Author SHA1 Message Date
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 56a2eb21e0 [fbw_gps] GPS in FBW/FTD (e.g. geofencing) (#1876)
* [FBW_GPS] Run GPS driver in FBW, e.g. for geofencing

* [FBW_GPS] convert all GPS modules to run in FBW
2016-11-02 11:13:16 +01:00
Felix Ruess 54b654a7b7 [dox] gps modules: specify dir so they get grouped with gps 2016-06-21 20:38:16 +02:00
Gautier Hattenberger 21b9d4043b [gps] remove duplicated elements (configured by common gps module) 2016-06-16 21:23:52 +02:00
Felix Ruess 2c12e96e02 [gps] separate gps module for gps_init and multi
- remove gps_init from main
- all actual gps_x implementations autoload the generic gps module
- generic GPS module has setting for multi_gps_mode
2016-06-16 14:39:55 +02:00
Felix Ruess 56e5bc891a [gps] fix invalid xml and dox 2016-06-15 23:51:03 +02:00
Felix Ruess 6bf56d7079 [gps] autoload gps_sim and gps_nps modules
from the "normal" gps modules so that you don't have to add them manually in your airframe to get the simulation running
2016-06-15 21:22:10 +02:00
Felix Ruess 6cc4d590f5 [gps] call gps_periodic_check from module 2016-06-15 21:22:09 +02:00
Felix Ruess 2374f82a98 [gps][sim] separate gps_sim and gps_nps modules 2016-06-15 21:22:09 +02:00
Felix Ruess 8afa5f01b2 [gps] call gps_x_init and event directly from module
and get rid of need for GPS registering.

PRIMARY_GPS (and SECONDARY_GPS) now needs to be UPPERCASE (the first part of the ABI id, e.g. GPS_UBX)
This is now only used/needed to resolve GpsId(PRIMARY_GPS) to e.g. GPS_UBX_ID

sim and nps are now failing, since the init and event functions are wrong for those targets.
Next step is to make gps_sim and gps_nps modules and remove those targets from the "normal" modules.
But maybe add the sim modules as dependencies so they can be auto-loaded?
2016-06-15 21:22:09 +02:00
Felix Ruess 8fb57b97b4 [gps] convert gps subsystems to modules
and remove obsolete/non-functional gps_ublox_hitl and gps_ardrone2

GPS functions still need to be called from main...
2016-06-15 20:48:07 +02:00