mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 12:33:35 +08:00
add explicit non-callback contructor for nuttx/uorb subscriber to work around linker issues
This commit is contained in:
@@ -178,6 +178,21 @@ public:
|
||||
//XXX store callback
|
||||
{}
|
||||
|
||||
/**
|
||||
* Construct SubscriberUORB by providing orb meta data without callback
|
||||
* @param meta orb metadata for the topic which is used
|
||||
* @param interval Minimal interval between calls to callback
|
||||
* @param list subscriber is added to this list
|
||||
*/
|
||||
SubscriberUORB(const struct orb_metadata *meta,
|
||||
unsigned interval,
|
||||
List<uORB::SubscriptionNode *> *list) :
|
||||
Subscriber<M>(),
|
||||
uORB::Subscription<M>(meta, interval, list),
|
||||
_callback(nullptr)
|
||||
//XXX store callback
|
||||
{}
|
||||
|
||||
~SubscriberUORB() {};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user