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
Mark Charlebois
830eb8528e
fixed merge conflict
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2017-01-09 15:41:54 -08:00
Mark Charlebois
9834155d09
Removed extra debug
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2017-01-09 15:41:54 -08:00
Mark Charlebois
b556528984
Fixed wait_for_topic and orb_exists
...
orb_exists was not updating the DSP topics on apps proc side
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2017-01-09 15:41:54 -08:00
Mark Charlebois
62a3e07423
orb_exists support for muorb
...
Also added builtin command wait_for_topic
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2017-01-09 15:41:54 -08:00
Beat Küng
ab3b68cf18
ORB_PRIO: set ORB_PRIO_MIN to 1 instead of 0
...
This is needed as the sensors app assumes a value of 0 means uninitialized.
Follow-up to 'Sensors app: Fix consistency checks', a6696d339d
2017-01-03 20:53:26 +01:00
Daniel Agar
cbc9680800
relax uorb test required avg
2017-01-02 10:14:41 +01:00
Lorenz Meier
2ec9f4a74e
uORB: Header cleanup
2016-12-27 21:00:51 +01:00
David Sidrane
dc8c6ea5e5
White space fixes
2016-12-21 08:34:21 +01:00
Lorenz Meier
c62c3c98bf
uORB devices: Guard more against invalid handles fed to publish routine
2016-12-19 20:34:52 +01:00
Beat Küng
0f2b31b41e
uorb: inline orb_advertise (directly calls orb_advertise_multi)
...
reduces the stack depth
2016-11-06 14:48:20 +01:00
Beat Küng
3029555016
uORBUtils: remove #include <string>
...
Avoid including <string> which can cause problems on NuttX
2016-10-24 10:22:48 +02:00
Beat Küng
1bdad65849
uorb: reduce RAM usage by avoiding string copies
...
The lifetime of the string is guaranteed because we never delete
DeviceNode objects and the strings in question are already on the heap.
This frees roughly 2.2KB of RAM on Pixracer
2016-10-23 15:25:20 +02:00
Beat Küng
c50e4a6e21
uORB::DeviceNode: reduce the size of some members
...
The limits the maximum queue size to 255, which I think is ok for the
forseable future.
sizeof(uORB::DeviceNode) is reduces from 128 to 112 on NuttX, and with
~80 instances, this saves over 1KB of RAM.
2016-10-23 15:25:20 +02: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
Beat Küng
549d456ec7
uorb devices: set errno on write error
2016-09-30 13:50:51 +02:00
Beat Küng
1d111cb254
px4_getpid: return the taskmap index instead of pthread_self()
...
this makes it consistent with other functions, like px4_task_spawn_cmd()
and px4_task_kill()
2016-09-30 13:50:51 +02:00
Julian Oes
8ff237c69f
Remove size optimization for individual modules
...
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Beat Küng
92d160c431
uorb devices: fix for QuRT which has no poll()
2016-09-28 15:31:52 +02:00
Beat Küng
219ab519e3
uorb devices: rename queue_size() & meta() to avoid member shadowing
2016-09-28 15:31:52 +02:00
Beat Küng
d1850f5112
uorb top: measure the elapsed time to give more accurate results
2016-09-28 15:31:52 +02:00
Beat Küng
52dde93a31
uorb: merge nuttx & posix files
2016-09-28 15:31:52 +02:00
Beat Küng
f601428e82
uorb: add ifdef's where necessary to mitigate diffs between nuttx & posix
...
now the files are equal
2016-09-28 15:31:52 +02:00
Beat Küng
f5654511b8
uorb: more syntax changes to remove diff between nuttx & posix files
2016-09-28 15:31:52 +02:00
Beat Küng
83c5323c3a
uorb: remove syntax differences between posix & nuttx src file
2016-09-28 15:31:52 +02:00
Beat Küng
fbd7aac4b5
uorb: add 'top' command for a live view of topic updates
2016-09-28 15:31:52 +02:00
Beat Küng
33fdb072df
uORBMain: disable message logging to the ulog on Snapdragon
2016-09-01 09:59:17 +02:00
Beat Küng
528ca931af
logger: only add data message to the log if orb_copy succeeds, when adding a new instance
2016-08-24 21:24:35 +02:00
Beat Küng
df53fb0fde
logging: publish a message for PX4_{WARN,ERR} & store them to the ulog file
...
- ulog file message rate limited to 50Hz
- queuing with size 2
- this replaces the mavlink log message in the ulog
(but the mavlink warnings & errors still go to the ulog)
2016-08-24 21:24:35 +02:00
Beat Küng
aefd217fc0
uorb subscription: remove _interval & use orb_get_interval() instead
2016-08-24 21:24:35 +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
Beat Küng
c0e3ab632e
orb: proper locking for DeviceNode::{add,remove}_internal_subscriber
2016-08-06 20:44:23 +02:00
Beat Küng
b86cf2b017
orb status: print information about lost messages
2016-08-06 20:44:23 +02:00
Beat Küng
7280f71cef
orb: rm static from DeviceMaster::_node_map & use the non-static getDeviceNode in uORB::Manager
...
Reasons:
- DeviceMaster::_node_map does not need to be shared among instances,
because there is at most 1 instance per Flavor and different Flavors
have non-intersecting device paths.
- Keeping it static would also require a static lock
- DeviceMaster::_node_map was not locked at all when used from
uORB::Manager
So this fixes two synchronization issues:
- Different DeviceMaster objects could access the same static data in
parallel
- getDeviceNode() called from uORB::Manager did not use any locking at all
2016-08-06 20:44:23 +02:00
Beat Küng
45a0a7c5ab
refactor orb: uORB::Manager is responsible for the DeviceMaster objects
...
This has the following benefits:
- Manager can ensure that there is at most one instance of DeviceMaster
per Flavor
- The Manager needs access to (static) data of DeviceMaster already.
This will make it easier to access this data in a non-static way, and
does not introduce new dependencies.
2016-08-06 20:44:23 +02:00
Julian Oes
5a262ec6bc
uorb: came across a wrong comment
2016-07-29 17:44:50 +02:00
Lorenz Meier
6ab9dc0acf
Testing cleanup from Daniel Agar
2016-07-29 13:49:14 +02:00
James Goppert
a4ef364f80
Added innovation logging to LPE. ( #5124 )
2016-07-22 19:19:30 -04:00