mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 03:43:34 +08:00
create uORB::PublicationMulti for multi publications
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
#include <lib/parameters/param.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <drivers/drv_range_finder.h>
|
||||
#include <uORB/Publication.hpp>
|
||||
#include <uORB/PublicationMulti.hpp>
|
||||
#include <uORB/topics/optical_flow.h>
|
||||
|
||||
/* Configuration Constants */
|
||||
@@ -117,7 +117,7 @@ private:
|
||||
|
||||
bool changeMode(Mode newMode);
|
||||
|
||||
uORB::Publication<optical_flow_s> _optical_flow_pub{ORB_ID(optical_flow)};
|
||||
uORB::PublicationMulti<optical_flow_s> _optical_flow_pub{ORB_ID(optical_flow)};
|
||||
|
||||
perf_counter_t _sample_perf;
|
||||
perf_counter_t _interval_perf;
|
||||
|
||||
Reference in New Issue
Block a user