Philipp Oettershagen
6f1f414b49
Subsystem_info status flags & checks : Initial commit, updating the health flags in a centralized way mostly in commander and the votedSensorsUpdate function.
2018-06-06 18:54:24 +02:00
Beat Küng
8bd61a9330
uORBDevices: avoid memset, use braced initializer instead
2018-05-09 07:59:46 +02: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
Daniel Agar
ea3acb7121
cmake remove circular linking and reorganize
...
- px4_add_module now requires MAIN
- px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Beat Küng
90513e719e
ASSERT: remove some inappropriate asserts
...
Since assertions lead to crashes, we need better failure handling. In all
the cases in this patch, the assert is not required.
All the ones with the task id should be replaced with the module base
class.
Ah yes, and this reduces flash space, since the ASSERT macro will expand to
a printf that contains the source file name.
2018-04-11 07:47:06 +02:00
Matthias Grob
cf48ceb428
Revert "Subscription remove unused instance class member"
...
This reverts commit cf2d794da9 .
2018-04-05 07:30:12 +02:00
Alessandro Simovic
f8e4e82bba
snapdragon: Applied camelCasing
2018-04-05 07:30:12 +02:00
Alessandro Simovic
50c1eba392
snapdragon: fixed compiler shadow warning, function name was identical as a variable name
2018-04-05 07:30:12 +02:00
Alessandro Simovic
cc41d8ccab
snapdragon: added missing includes
2018-04-05 07:30:12 +02:00
Beat Küng
737f7df6b8
Subscription & SubscriptionArray: add forcedUpdate() methods
...
Can be used to immediately get & use the data, as needed for the flight
tasks.
2018-04-05 07:30:12 +02:00
Beat Küng
9b571abb47
FlightTasks: add SubscriptionArray class that contains all subscriptions
...
This is to avoid dynamic (re-)allocations on task switching, due to
orb_{un,}subscribe calls.
2018-04-05 07:30:12 +02:00
Beat Küng
0038a5e755
uorb: fix constness for _uorb_topics_list
...
_uorb_topics_list was marked as 'const char *' array, which means the data
of the array was not actually const and thus landed in the data section
(so in RAM instead of FLASH).
The size of the array is 436 bytes.
2018-03-29 10:06:21 -04:00
Beat Küng
45458fe9eb
uORBManager: add comment about not having to set the priority
2018-01-19 14:11:01 +01:00
Beat Küng
2cb698f01f
uORBDevices: set the priority when advertising a node that's already subscribed
...
This fixes the case where a topic instance is already subscribed, and
advertised later. The subscriber will create the DeviceNode with default
priority, and the advertiser will just use the existing DeviceNode,
without updating to the requested priority.
2018-01-19 14:11:01 +01:00
Daniel Agar
cf2d794da9
Subscription remove unused instance class member
2018-01-09 00:48:54 -05:00
Daniel Agar
8fdcdedc84
Publication remove unused instance class member
2018-01-09 00:48:54 -05:00
Daniel Agar
859b19db9a
uORB.h reduce orb_metadata field sizes
2017-12-31 09:47:51 -05:00
Beat Küng
4c4b528842
uORBManager: fix code style
2017-10-18 08:40:32 +02:00
Beat Küng
2f2c0440c4
orb_exists: change semantics from (is published or subscribed) to (is published)
...
Existing users of orb_exists:
- logger (dynamic subscribe to multi-instances)
- mavlink (orb subscription)
- sdlog2
- preflightcheck (check for home_position)
- wait_for_topic shell command (it's not used)
- orb_group_count() (sensors: dynamic sensor addition)
All use-cases benefit from the changed semantics: they are really only
interested if there is a publisher, not another subscriber.
2017-10-18 08:40:32 +02:00
Daniel Agar
651df03f76
RTPS and micro-CDR build system cleanup ( #8084 )
2017-10-11 13:05:44 -04:00
Daniel Agar
48f1e3ed1c
uORB generation move to msg/
2017-09-29 10:13:51 -04:00
Daniel Agar
01b3e6fd25
NuttX upgrade cmake wrapper ( #7873 )
...
* NuttX cmake
* px4_macros:Pass the stringified predicate as second arg to static assert
CC_ASSERT mapes to the c++ static_assert or provides the same
funtionality for c via the other macros. The c++ static assert
takes 2 argumants the prdicate and a message. This fixes the
lacking second argument.
* Updated nuttx and apps submodule to upstream nuttx 7.21+==master
This is the latest uptake of upstream nuttx and apps.
* ROMFS generate with xxd instead of objcopy
* delete nuttx-patches
* NuttX update submodules to latest px4_nuttx-master
* fix nuttx apps and board dependency
* docker_run update to latest container 2017-08-29
* cmake ROMFS portable sed usage
* NuttX update submodules to latest px4_nuttx-master
2017-09-29 10:13:51 -04:00
Daniel Agar
0da2dca8c1
drivers remove device _debug_enabled
2017-09-25 10:30:22 -04:00
Daniel Agar
9b5fe8c476
ignore -Wsign-compare per module
2017-09-07 10:27:36 +02:00
Daniel Agar
07619cf723
Make NuttX drivers cross platform (VDev -> CDev)
2017-08-31 09:27:36 +02:00
Daniel Agar
e63da5860e
uORB cleanup Subscription/Publication c++
2017-08-20 20:42:42 +02: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
Beat Küng
3f6769d41e
uorb: add module documentation
2017-07-14 11:57:11 +02:00
Beat Küng
317c8bf557
uorb: update usage
2017-07-14 11:57:11 +02:00
Daniel Agar
61fd6f4c8a
uorb failure print topic name
2017-07-09 14:40:11 +02:00
Julien Lecoeur
89a8c656f2
Unneeded includes
2017-06-13 11:50:00 +02:00
Julien Lecoeur
1a6d2c491b
Remove explicit template instantiation of Subscription<T>
2017-06-13 11:50:00 +02:00
Julien Lecoeur
550aee4da3
Remove explicit template instantiation of Publication<T>
2017-06-13 11:50:00 +02:00
Julien Lecoeur
3ff1f4d16f
Move uORB::Subscription template implementation to header
2017-06-13 11:50:00 +02:00
Daniel Agar
17c1114b3e
clang-tidy readability-named-parameter
2017-06-02 19:35:18 -04:00
Daniel Agar
e112161a04
clang-tidy fix mathlib headers and format
2017-06-02 19:35:18 -04:00
Beat Küng
4a7e02c640
systemlib/visibility.h: remove this file
...
This is duplicated in src/include/visibility and is directly included via
compiler flag '-include'
2017-03-29 23:02:09 +02:00
Nate Weibley
f5ffdba4cc
Move uORB Subscription getter to header file ( #6891 )
2017-03-24 15:47:22 -04:00
Daniel Agar
0611677ee2
segway move to examples
2017-03-11 11:40:14 +01:00
Kabir Mohammed
f8775306d3
Remove deprecated vision_position_estimate topic
2017-02-15 21:48:33 +01:00
Daniel Agar
070cd55636
clang-tidy readability
2017-02-01 22:15:50 -05:00
Daniel Agar
ca09f8a107
uORBDevices use global read with stdin int
2017-02-01 22:15:50 -05: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
ee8fa78d93
astyle src/modules/uORB
2017-01-29 01:18:32 +01:00
Larry Wang
1beb2911e2
init shmem early to avoid random crash in fastrpc ( #6407 )
...
* init shmem early to avoid possible crash
* fix_code_style
* Keep the initialziation to NULL, remove the duplicate memory allocation
2017-01-21 08:30:46 +01:00
wangxdflight
b693e29d64
enable px4 flight for excelsior(legacy)
2017-01-16 08:25:58 -08:00
Mark Charlebois
f529069368
Fixed code format issues
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2017-01-09 15:41:54 -08:00