mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 01:50:34 +08:00
5b1273e334
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.