Node objects update

This commit is contained in:
Pavel Kirienko
2015-06-29 19:26:06 +03:00
parent 287d9dd942
commit c0a4058c5f
3 changed files with 2 additions and 16 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ public:
* @param node_status_transfer_priority Transfer priority that will be used for outgoing NodeStatus messages.
* Normal priority is used by default.
*/
int start(const TransferPriority node_status_transfer_priority = TransferPriorityNormal);
int start(const TransferPriority node_status_transfer_priority = TransferPriority::Default);
#if !UAVCAN_TINY
/**
@@ -65,20 +65,6 @@ public:
return BaseType::publish(message, TransferTypeMessageBroadcast, NodeID::Broadcast, tid);
}
/**
* Unicast the message to the specified destination Node ID.
* Returns negative error code.
*/
int unicast(const DataType& message, NodeID dst_node_id)
{
if (!dst_node_id.isUnicast())
{
UAVCAN_ASSERT(0);
return -ErrInvalidParam;
}
return BaseType::publish(message, TransferTypeMessageUnicast, dst_node_id);
}
/**
* Returns priority of outgoing transfers.
*/
@@ -68,7 +68,7 @@ public:
* Starts the provider and immediately broadcasts uavcan.protocol.NodeStatus.
* Returns negative error code.
*/
int startAndPublish(TransferPriority priority = TransferPriorityNormal);
int startAndPublish(TransferPriority priority = TransferPriority::Default);
/**
* Publish the message uavcan.protocol.NodeStatus right now, out of schedule.