mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 06:13:35 +08:00
Optimized NodeStatusMonitor
This commit is contained in:
@@ -45,7 +45,12 @@ private:
|
|||||||
void (NodeStatusMonitor::*)(const ReceivedDataStructure<protocol::NodeStatus>&)>
|
void (NodeStatusMonitor::*)(const ReceivedDataStructure<protocol::NodeStatus>&)>
|
||||||
NodeStatusCallback;
|
NodeStatusCallback;
|
||||||
|
|
||||||
Subscriber<protocol::NodeStatus, NodeStatusCallback> sub_;
|
/*
|
||||||
|
* We'll be able to handle this many nodes in the network without any dynamic memory.
|
||||||
|
*/
|
||||||
|
enum { NumStaticReceivers = 64 };
|
||||||
|
|
||||||
|
Subscriber<protocol::NodeStatus, NodeStatusCallback, NumStaticReceivers, 0> sub_;
|
||||||
|
|
||||||
struct Entry
|
struct Entry
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user