mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
NodeStatusMonitor API update
This commit is contained in:
parent
93376316b8
commit
08d96ef329
@ -110,6 +110,10 @@ private:
|
||||
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&)
|
||||
{
|
||||
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.
|
||||
* Refer to uavcan.protocol.NodeStatus for the offline timeout value.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user