NodeStatusMonitor API update

This commit is contained in:
Pavel Kirienko 2015-05-12 23:56:13 +03:00
parent 93376316b8
commit 08d96ef329

View File

@ -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.