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
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
8579b5dd26
uORB: Subscription add copy/move constructor and assignment
4 years ago
Daniel Agar
94f7b50970
uORB: add Subscription method to change instance
5 years ago
Daniel Agar
6ff361479c
uORB: introduce SubscriptionMultiArray for working with multi-instances
5 years ago
Daniel Agar
27f23ac290
move initial sensor priority to parameters and purge ORB_PRIORITY
...
- CAL_ACCx_EN -> CAL_ACCx_PRIO
- CAL_GYROx_EN -> CAL_GYROx_PRIO
- CAL_MAGx_EN -> CAL_MAGx_PRIO
5 years ago
Daniel Agar
372866a22b
uORB::DeviceNode replace SubscriptionData with uORB::SubscriptionInterval
5 years ago
Matthias Grob
a6777e2650
Subscription: correct doxygen comment
5 years ago
Daniel Agar
e34bdb4be9
move IMU integration out of drivers to sensors hub to handle accel/gyro sync
...
- IMU integration move from drivers (PX4Accelerometer/PX4Gyroscope) to sensors/vehicle_imu
- sensors: voted_sensors_update now consumes vehicle_imu
- delete sensor_accel_integrated, sensor_gyro_integrated
- merge sensor_accel_status/sensor_gyro_status into vehicle_imu_status
- sensors status output minor improvements (ordering, whitespace, show selected sensor device id and instance)
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
0eca583ecf
sensors: move baro aggregation to new sensors/vehicle_air_data
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
d38dfcfcd3
uORB::Subscription fix initialization but not yet published case
...
- otherwise uORB::Subscription will erroneously report published after the first successful initialization of an unpublished topic
6 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
136962d125
uORB Subscription callbacks with WorkItem scheduling on publication ( #12207 )
6 years ago
Daniel Agar
ceac68e69d
uORB remove unused SubscriptionInterval and SubscriptionIntervalData
6 years ago
Daniel Agar
2c63e335e9
uORB::Subscription subscribe directly to uORB device node object
6 years ago
Daniel Agar
c7e572d2c2
commander preflight check sensors via uORB instead of IOCTL
...
- remove all platform defines
7 years ago
Matthias Grob
cf48ceb428
Revert "Subscription remove unused instance class member"
...
This reverts commit cf2d794da9
.
7 years ago
Alessandro Simovic
f8e4e82bba
snapdragon: Applied camelCasing
7 years ago
Alessandro Simovic
50c1eba392
snapdragon: fixed compiler shadow warning, function name was identical as a variable name
7 years ago
Alessandro Simovic
cc41d8ccab
snapdragon: added missing includes
7 years ago
Beat Küng
737f7df6b8
Subscription & SubscriptionArray: add forcedUpdate() methods
...
Can be used to immediately get & use the data, as needed for the flight
tasks.
7 years ago
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.
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
3ff1f4d16f
Move uORB::Subscription template implementation to header
8 years ago
Daniel Agar
17c1114b3e
clang-tidy readability-named-parameter
8 years ago
Nate Weibley
f5ffdba4cc
Move uORB Subscription getter to header file ( #6891 )
8 years ago
Beat Küng
aefd217fc0
uorb subscription: remove _interval & use orb_get_interval() instead
9 years ago
Daniel Agar
76387b1693
uorb autogeneration
9 years ago
James Goppert
d45e5ca50e
Added control state subscription.
9 years ago
jgoppert
b9e461b028
Control lib update.
9 years ago
Lorenz Meier
c19c8a35b2
uORB: Update code style
9 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
b0cfc2d122
uORB::SubscriptionNode stores interval
10 years ago
James Goppert
c4ed97f3c1
Added uORB tiny pub/sub for usage without struct on stack.
11 years ago
James Goppert
afb2c37bfc
Fixed uORB Pub/Sub templates for GCC 4.7
11 years ago
James Goppert
da9dab2799
Moved List.hpp from controllib to src/include/containers.
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