Руслан Урядинский / libuavcan

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

NodeDiscoverer Class Reference

NodeDiscoverer Class Reference

This class listens to NodeStatus messages from other nodes and retrieves their unique ID if they are not known to the allocator. More...

#include <node_discoverer.hpp>

Inherits uavcan::TimerBase.

Public Member Functions

bool hasUnknownNodes () const
 Returns true if there's at least one node with pending GetNodeInfo.
uint8_t getNumUnknownNodes () const
 Returns number of nodes that are being queried at the moment.

Private Member Functions

void startOneShotWithDeadline (MonotonicTime deadline)
 Various ways to start the timer - periodically or once.
MonotonicDuration getPeriod () const
 Returns period if the timer is in periodic mode.

Detailed Description

This class listens to NodeStatus messages from other nodes and retrieves their unique ID if they are not known to the allocator.

Definition at line 68 of file node_discoverer.hpp.


Member Function Documentation

uint8_t getNumUnknownNodes (  ) const

Returns number of nodes that are being queried at the moment.

This method is needed for testing and state visualization.

Definition at line 342 of file node_discoverer.hpp.

bool hasUnknownNodes (  ) const

Returns true if there's at least one node with pending GetNodeInfo.

Definition at line 336 of file node_discoverer.hpp.