mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-30 23:44:06 +08:00
Optimized NodeStatusMonitor
This commit is contained in:
parent
d3d266264c
commit
4239c2eddd
@ -45,7 +45,12 @@ private:
|
||||
void (NodeStatusMonitor::*)(const ReceivedDataStructure<protocol::NodeStatus>&)>
|
||||
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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user