mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 01:13:34 +08:00
Node objects update
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user