-
- Downloads
orb: add optional queuing of messages
This adds two uORB API calls: - orb_advertise_queue - orb_advertise_multi_queue Both add a queue_size parameter to define a maximum number of buffered item. The existing orb calls use all a queue size of one and thus their behavior is unchanged. If a writer publishes too fast, the oldest elements from the queue are silently dropped. The returned timestamp is always the one from the latest message in the queue. Queue size can be set via ioctl during advertisement phase. After that it cannot be changed anymore.
Showing
- src/drivers/drv_orb_dev.h 3 additions, 0 deletionssrc/drivers/drv_orb_dev.h
- src/modules/uORB/uORB.cpp 11 additions, 0 deletionssrc/modules/uORB/uORB.cpp
- src/modules/uORB/uORB.h 12 additions, 0 deletionssrc/modules/uORB/uORB.h
- src/modules/uORB/uORBDevices_nuttx.cpp 41 additions, 6 deletionssrc/modules/uORB/uORBDevices_nuttx.cpp
- src/modules/uORB/uORBDevices_nuttx.hpp 12 additions, 1 deletionsrc/modules/uORB/uORBDevices_nuttx.hpp
- src/modules/uORB/uORBDevices_posix.cpp 41 additions, 6 deletionssrc/modules/uORB/uORBDevices_posix.cpp
- src/modules/uORB/uORBDevices_posix.hpp 12 additions, 1 deletionsrc/modules/uORB/uORBDevices_posix.hpp
- src/modules/uORB/uORBManager.cpp 12 additions, 3 deletionssrc/modules/uORB/uORBManager.cpp
- src/modules/uORB/uORBManager.hpp 8 additions, 3 deletionssrc/modules/uORB/uORBManager.hpp
Loading
Please register or sign in to comment