mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 03:03:34 +08:00
NodeStatusMonitor API update
This commit is contained in:
@@ -110,6 +110,10 @@ private:
|
|||||||
handleNodeStatusMessage(msg);
|
handleNodeStatusMessage(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
/**
|
||||||
|
* This event will be invoked at 2 Hz rate. It can be used by derived classes as well.
|
||||||
|
*/
|
||||||
virtual void handleTimerEvent(const TimerEvent&)
|
virtual void handleTimerEvent(const TimerEvent&)
|
||||||
{
|
{
|
||||||
const int OfflineTimeoutMs100 = protocol::NodeStatus::OFFLINE_TIMEOUT_MS / 100;
|
const int OfflineTimeoutMs100 = protocol::NodeStatus::OFFLINE_TIMEOUT_MS / 100;
|
||||||
@@ -134,7 +138,6 @@ private:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
|
||||||
/**
|
/**
|
||||||
* Called when a node becomes online, changes status or goes offline.
|
* Called when a node becomes online, changes status or goes offline.
|
||||||
* Refer to uavcan.protocol.NodeStatus for the offline timeout value.
|
* Refer to uavcan.protocol.NodeStatus for the offline timeout value.
|
||||||
|
|||||||
Reference in New Issue
Block a user