Jukka Laitinen
0b9505453d
Clean up interfaces towards uORB
...
Proxy all calls to the DeviceNode through Manager;
- This hides the DeviceNode from publishers and subscribers
- Manager can be made an interface class between user and kernel spaces in protected build
- This doesn't increase code size or harm the performance on flat build
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
3 years ago
Daniel Agar
500c45e798
uORB: Subscription check if uORB::Manager instance is valid
...
- this is necessary if uORB::Subscription is used with static storage
duration
4 years ago
Beat Küng
0a98c5a7f4
Subscription: fix ChangeInstance
4 years ago
Daniel Agar
ab0d0fd0be
uORB move to PX4 platform layer
4 years ago
FengShun
d19b54481a
fix: uORB topics lost messages when publications overflow
4 years ago
Daniel Agar
94f7b50970
uORB: add Subscription method to change instance
5 years ago
Daniel Agar
372866a22b
uORB::DeviceNode replace SubscriptionData with uORB::SubscriptionInterval
5 years ago
Daniel Agar
5fcd7932e9
mavlink: replace MavlinkOrbSubscription with uORB::Subscription
...
* uORB orb_stat() and update(uint64_t *time, void *dst) are now obsolete and have been deleted
* mavlink messages add more advertised checks in streams get_size() check to improve data rate calculation across different scenarios
5 years ago
Daniel Agar
9585055e9e
uORB: add bitset for faster orb_exists check and remove uORB::Subscription lazy subscribe hack/optimization
...
- add PX4 bitset and atomic_bitset with testing
- add uORB::Subscription constructor to take ORB_ID enum
- move orb test messages into msg/
5 years ago
Beat Küng
63b2befeed
refactor uorb: rename published to advertised
...
No semantic change (yet)
5 years ago
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)
5 years ago
Daniel Agar
8f5b7de498
uORB::Subscription minor API cleanup
...
* the forceInit() method was combined with the existing subscribe()
* delete unused last_update()
6 years ago
Daniel Agar
2c63e335e9
uORB::Subscription subscribe directly to uORB device node object
6 years ago
Matthias Grob
cf48ceb428
Revert "Subscription remove unused instance class member"
...
This reverts commit cf2d794da9
.
7 years ago
Daniel Agar
cf2d794da9
Subscription remove unused instance class member
7 years ago
Daniel Agar
e63da5860e
uORB cleanup Subscription/Publication c++
8 years ago
Julien Lecoeur
89a8c656f2
Unneeded includes
8 years ago
Julien Lecoeur
1a6d2c491b
Remove explicit template instantiation of Subscription<T>
8 years ago
Julien Lecoeur
3ff1f4d16f
Move uORB::Subscription template implementation to header
8 years ago
Nate Weibley
f5ffdba4cc
Move uORB Subscription getter to header file ( #6891 )
8 years ago
Daniel Agar
0611677ee2
segway move to examples
8 years ago
Kabir Mohammed
f8775306d3
Remove deprecated vision_position_estimate topic
8 years ago
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)
9 years ago
Beat Küng
aefd217fc0
uorb subscription: remove _interval & use orb_get_interval() instead
9 years ago
James Goppert
9fcf121380
LPE: Don't use home as local origin ( #5067 )
9 years ago
Beat Küng
ee58f0d11d
encoders.msg: remove this topic, it's never published ( #5074 )
9 years ago
Beat Küng
069dd01cb0
logger: subscribe to mavlink_log messages and write them to the log
9 years ago
Daniel Agar
76387b1693
uorb autogeneration
9 years ago
James Goppert
d45e5ca50e
Added control state subscription.
9 years ago
Lorenz Meier
d094a8f7bf
uORB sub: Do not call orb_set_interval with zero
9 years ago
jgoppert
b9e461b028
Control lib update.
9 years ago
Mark Charlebois
f6af5dc312
Added hil_sensor to Subscription.cpp
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
10 years ago
TSC21
db48df15c8
Merge branch 'master'
10 years ago
James Goppert
e1d2c0c5ad
Move more messages to auto-generation, work on C++ code style
10 years ago
Lorenz Meier
8de411619a
Initial stab at supporting multiple publications on the same base name and auto-enumeration of additional publications.
10 years ago
Thomas Gubler
712e5797eb
Subscription: define more templates
10 years ago
Thomas Gubler
e7c1e5b1ff
wip, working on the nuttx wrapper
10 years ago
Thomas Gubler
55cf2fc61c
WIP, towards more px4 compatibility, first macros
10 years ago
James Goppert
c4ed97f3c1
Added uORB tiny pub/sub for usage without struct on stack.
11 years ago
Kynos
9bad828bc0
U-blox driver rework, step 2
...
Moved satellite info from vehicle_gps_position_s into a new uORB topic
satellite_info.
Renamed satellites_visible to satellites_used to reflect true content.
sdlog2 will log info for GPS satellites only for now.
11 years ago
James Goppert
eaef67f21d
Added encoder uORB message/ fixedwing_backside working if enabled.
11 years ago
James Goppert
afb2c37bfc
Fixed uORB Pub/Sub templates for GCC 4.7
11 years ago
James Goppert
fd6590cfa7
Moved UOrbPubliction/Subscription to uORB::Publication/Subscription
11 years ago
James Goppert
1980d9dd63
Working on segway controller, restructure of fixedwing.
12 years ago
Lorenz Meier
13fc670386
Moved last libs, drivers and headers, cleaned up IO build
12 years ago
px4dev
faced6bfe3
Merge James's controllib bits into a separate library module.
...
Add a top-level mathlib header to avoid having to dig around for specific headers.
12 years ago
jgoppert
8888b73e16
Added control library.
12 years ago
jgoppert
d9491b20cc
Reformat of math library with astyle.
12 years ago
jgoppert
4f3b17f53b
Added math library to build.
12 years ago
px4dev
bc432b1feb
Cleanup and add support for multiple channels.
12 years ago