Commit Graph

962 Commits

Author SHA1 Message Date
Matthias Grob cbd230e34e Testing: Clean up unit_test target because test_results does all tests now 2019-05-09 09:42:46 +02:00
Matthias Grob 5a90382cb8 sitl_tests: add prefix "sitl-" for regex test filtering 2019-05-09 09:42:46 +02:00
Matthias Grob 5020dfdc3d Testing: switch unit tests to BUILD_TESTING 2019-05-09 09:42:46 +02:00
Matthias Grob f5f95635b4 gtest: fix poisoned exit in compile flags
visibility.h is included globally in PX4 via cmake compile flags.
It contains poisoning the exit() command which is used by gtest
to close the test application. Removing the flag for gtest compilation
fixes the compile error:
gtest.cc:4757:7: error: attempt to use poisoned "exit"
2019-05-09 09:42:46 +02:00
Matthias Grob 8eb0d66279 gtest: download specific version 2019-05-09 09:42:46 +02:00
Matthias Grob 0ff64bf101 Improve ctest unit test naming and filtering 2019-05-09 09:42:46 +02:00
Matthias Grob 63b967f5df Add unit testing possibility using googletest on POSIX 2019-05-09 09:42:46 +02:00
Daniel Agar b35d048566 cmake enable -Wcast-align and disable per module 2019-03-16 11:47:15 -04:00
Daniel Agar f3533d31f8 mavlink update to latest and enable address-of-packed-member warning 2019-03-14 09:56:09 +01:00
Daniel Agar 2217faf812
mathlib Limits constexpr helpers don't use references (#11411)
- fixes #11408
 - cleanup Limits.hpp
2019-02-08 14:10:09 -05:00
Daniel Agar 40e42a677b
NuttX cmake support optional compressed defconfigs 2019-01-30 10:54:53 -05:00
Daniel Agar 320d2e9383
create PX4 platform layer initialization helper (#11269)
- starts requirements for PX4 modules (hrt, param, etc)
2019-01-22 14:13:20 -05:00
Kārlis Seņko d1a1a1b9fe Use correct path when looking up df wrapper. 2018-12-11 09:21:15 -05:00
Daniel Agar 1efad64f0c bebop move flow driver to board directory 2018-12-04 01:06:54 -05:00
Daniel Agar 3e0a3559a9 cmake use standard mechanisms for settings flags 2018-11-26 14:40:14 -08:00
Daniel Agar 11be2b8873 cmake split px4_base into px4_add_module, px4_add_library, px4_add_common_flags 2018-11-26 14:40:14 -08:00
Daniel Agar c258534aa5 cmake px4_add_board document and cleanup 2018-11-26 14:40:14 -08:00
Daniel Agar fa0fe4cac6 cmake remove need for platform px4_add_board_os
- explicitly set TOOLCHAIN on all NuttX targets
2018-11-26 14:40:14 -08:00
Daniel Agar ec4c9da253 remove BOARD_NAME from board_config.h and set automatically 2018-11-26 14:40:14 -08:00
Daniel Agar abb3817d31 boards new split VENDOR_MODEL naming convention 2018-11-26 14:40:14 -08:00
Daniel Agar f692ad04d0 boards organization 2018-11-26 14:40:14 -08:00
CUAVcaijie eb8a3de987 add rgbled_ncp5623c driver (#10889)
Co-Authored-By: CUAVcaijie <caijie@cuav.net>
2018-11-25 13:40:51 -05:00
Mara Bos 3c660acca8 Add unit test for dynamically loading modules on posix. 2018-11-24 01:58:09 +01:00
Mara Bos d13836eb1e Add dynamic modules on Posix.
You can now add `DYNAMIC` as an option to `px4_add_module`, which will
cause that module to no longer be compiled into the px4 executable, but
instead produce a separate shared library file, which can be loaded and
executed with the new `dyn` command:

    pxh> dyn ./hello.px4mod start

This will load the shared object file `hello.px4mod` if it wasn't
already loaded, and execute its main function with the given arguments.
2018-11-24 01:58:09 +01:00
Daniel Agar 246b879aea require MODULE_NAME 2018-11-10 13:52:34 -05:00
Daniel Agar e3388ec1d6 px4fmu-v2_default disable pwm_input 2018-11-02 16:09:43 +01:00
Daniel Agar 1376e9a39e px4fmu-v2_default disable ms5525 2018-11-02 16:09:43 +01:00
Beat Küng dc62454f0a px4fmu-v2_default: disable sf1xx distance sensor
Due to limited flash space
2018-10-26 08:02:42 +02:00
Beat Küng db7cbf1770 aerofc, crazyflie, omnibus: remove vtol module 2018-10-26 08:02:42 +02:00
Daniele Pettenuzzo d2e2b5e8ce add pmw3901 optical flow support for fmu-v5 (#10750) 2018-10-24 10:25:41 -04:00
Daniel Agar 86683944f8 px4fmu-v2_default disable lis3mdl 2018-10-17 10:27:03 +02:00
Mark Sauder ad8539bd15 Deprecate the tap_common directory, nuttx, driver, and makefile references to tap-v1. (#10629) 2018-10-15 11:53:29 -04:00
Daniel Agar f74b96e918 AV-X DSM RC fixes (disable single wire) 2018-10-09 10:37:12 -04:00
Beat Küng 02d89575b0 px4fmu-v2: disable camera_trigger
due to limited flash space.
2018-10-02 14:14:10 +02:00
Lukas Woodtli 587c2e2477 Improve the use of ubsan in SITL pipeline
Also some general minor sanitizer improvements.
2018-09-30 16:08:58 -04:00
Daniel Agar 9d2ff820bf
px4fmu-v2 disable sdp3x to save flash (#10600)
- fixes #10599
2018-09-29 11:21:21 -04:00
Beat Küng a1f0f88b33 posix_ocpoc_cross.cmake: fix ulanding module
module list is now the same as posix_ocpoc_ubuntu.cmake
2018-09-28 10:29:31 +02:00
Beat Küng dae292631c Tools/serial: use per-module serial port config params, instead of per-port 2018-09-25 07:53:29 +02:00
Beat Küng c237221a81 cmake: add serial param & ROMFS generation to the build system
- only a few configs done yet
2018-09-25 07:53:29 +02:00
Beat Küng 0ebf821db4 cmake configs: minor cleanup for hott telemetry
it got moved to drivers/telemetry/hott
2018-09-25 07:53:29 +02:00
Beat Küng b93d02aee7 Revert "omnibus: (temporarily) disable the topic listener"
This reverts commit 370fddc115.

Because the topic_listener got smaller.
2018-09-24 13:25:23 +02:00
Daniel Agar 18a0b39968
sanitizers cleanup (#10551)
- add to AddressSanitizer and UndefinedBehaviorSanitizer to CMAKE_BUILD_TYPE options
 - handle environment variable helpers outside of CMake
 - add -O1 optimization
 - cleanup whitespace
2018-09-23 16:52:09 -04:00
Daniel Agar 036734eb76 cmake git submodules handle all paths consistently
- relative to the PX4 source directory root
2018-09-23 13:41:59 -04:00
Beat Küng 370fddc115 omnibus: (temporarily) disable the topic listener
To reduce flash usage, until we can disable the FW & VTOL modules.
2018-09-20 11:14:02 +02:00
Daniel Agar 72489e27b3 px4fmu-v2 disable SRF02 ultra sonic range finder 2018-09-20 07:57:00 +02:00
Lukas Woodtli c1a58bda17 Add address sanitizer to SITL pipeline
- Environment variables for building with asan
- Docker argument for leak sanitizer
- Regex for tests to fail on sanitizer error

Signed-off-by: Lukas Woodtli <woodtli.lukas@gmail.com>
2018-09-16 09:40:53 +02:00
Beat Küng 84c6b5ac6b fmu-v2: add bootloader binary and SYS_BL_UPDATE param for BL updates
This allows a simple-to-use bootloader update mechanism to switch from
fmu-v2 to fmu-v3 target that has more flash.
2018-09-14 17:06:19 +02:00
mcsauder e7666aa5d8
Added an imu heater driver, formatted whitespace, standardized comments, and added doxy documentation. 2018-09-06 12:03:26 +02:00
Beat Küng e5a7945ad2 cmake configs: remove posix_sitl_ekf2.cmake
Not needed anymore, use PX4_ESTIMATOR.
2018-09-03 09:01:50 -04:00
Daniel Agar 8fbeb6f717 cmake px4_add_git_submodule set USES_TERMINAL
- this allows interacting with the submodules check
2018-09-02 16:28:45 -04:00