Beat Küng
3198610f85
src/platforms: move all headers to platforms/common/include/px4_platform_common
...
and remove the px4_ prefix, except for px4_config.h.
command to update includes:
for k in app.h atomic.h cli.h console_buffer.h defines.h getopt.h i2c.h init.h log.h micro_hal.h module.h module_params.h param.h param_macros.h posix.h sem.h sem.hpp shmem.h shutdown.h tasks.h time.h workqueue.h; do for i in $(grep -rl 'include <px4_'$k src platforms boards); do sed -i 's/#include <px4_'$k'/#include <px4_platform_common\/'$k/ $i; done; done
for in $(grep -rl 'include <px4_config.h' src platforms boards); do sed -i 's/#include <px4_config.h/#include <px4_platform_common\/px4_config.h'/ $i; done
Transitional headers for submodules are added (px4_{defines,log,time}.h)
2019-10-30 11:48:47 +01:00
Daniel Agar
184aa2861a
PX4_ISFINITE use builtin everywhere
2019-02-21 14:56:08 -05:00
Lorenz Meier
ec0a9806a8
uORB test: Retain atomic operation
2019-01-22 23:52:57 +01:00
Julian Oes
5b9dea5604
Replacing usleep with px4_usleep
...
This is a step towards isolating time from the system.
2018-12-22 10:32:18 +01:00
Daniel Agar
ea73284a1f
uORB tests increase stack sizes
2018-09-02 15:31:54 -04:00
Daniel Agar
99ed46949e
uORB_tests print pointer correctly
2018-08-30 19:04:13 +02:00
Daniel Agar
dbf2d25e2f
uORB move to standalone CDev
...
- uORB topics should not be Devices with bus, address, device id
2018-08-27 13:14:15 -04:00
Beat Küng
c0cac0594e
file paths: add PX4_STORAGEDIR & use it where appropriate
2018-08-08 21:09:39 +02:00
Beat Küng
fbd553c528
uorb tests: improve & extend latency test output
...
- min/max
- std dev
- number of missed updates
2018-07-30 23:06:32 +02:00
Daniel Agar
9ce83f2208
fix all sign-compare warnings
2018-07-01 09:36:55 +00:00
Beat Küng
13ab5ed0d0
px4_main_t: fix method declaration throughout the code base
...
px4_main_t is defined as:
typedef int (*px4_main_t)(int argc, char *argv[]);
which matches with the definition in NuttX, given to task_create
2018-05-09 07:59:46 +02:00
Daniel Agar
edea1b65cd
uORB delete unused Flavor
2018-05-02 00:48:46 -04:00
Peter Duerr
40dff737c5
Fix uninitialized values identified by cppcheck
...
* Replace `malloc` by `calloc` for c-string initialization
* Add initializer braces for structs
2017-08-07 22:05:17 +02:00
Peter Duerr
cc1b766824
Fix memory leaks identified by cppcheck
...
* Add `free` / `delete`
* Add comment explaining the (presumed) motivation for the use of new instead of
allocating on the stack
2017-08-07 22:05:17 +02:00
Daniel Agar
6631e72d6f
clang-tidy modernize-redundant-void-arg
2017-02-01 22:15:50 -05:00
Daniel Agar
e927f3e040
clang-tidy modernize-use-nullptr
2017-02-01 22:15:50 -05:00
Daniel Agar
cbc9680800
relax uorb test required avg
2017-01-02 10:14:41 +01:00
Beat Küng
76733ce54b
uorb tests: move orb metadata struct definition into cpp file
...
If they're in the header and the header is used in multiple .cpp, there
are multiple definitions. Oddly it did not lead to an error, but there
were multiple structs of the same topic but with different adresses.
This lead to a metadata mismatch, when running eg:
uorb_tests
uorb_tests latency_test
2016-09-30 13:50:51 +02:00
Lorenz Meier
630cebeabc
Relax uORB test for Darwin CI system
2016-08-07 14:05:03 +02:00
Lorenz Meier
207a04bba0
Fix uORB tests for Mac OS
2016-08-07 14:05:03 +02:00
Lorenz Meier
6ab9dc0acf
Testing cleanup from Daniel Agar
2016-07-29 13:49:14 +02:00
Beat Küng
43d734ef43
orb: consistently use unsigned int for queue_size
2016-06-02 07:24:44 +02:00
Beat Küng
392c32d316
uORBTest_UnitTest.cpp: fix style
2016-06-02 07:24:44 +02:00
Beat Küng
79b3766544
orb: add unit tests for queuing, including tests with poll & notify interface
...
Both succeed under Posix & NuttX (Pixracer)
2016-06-02 07:24:44 +02:00
Daniel Agar
008354f935
testing cleanup
2016-05-13 13:01:41 +02:00
Daniel Agar
12165ba5a4
uORB separate tests
2016-05-13 13:01:41 +02:00