mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
refactor(uavcan): adapt some newlines and a comment
This commit is contained in:
1 parent
ebf8b69c66
commit
d5491fac79
2 files changed
+3
-5
No files matched your search
@@ -52,8 +52,7 @@ NodeInfoPublisher::~NodeInfoPublisher()
|
||||
delete[] _device_informations;
|
||||
}
|
||||
|
||||
void NodeInfoPublisher::handleNodeInfoRetrieved(uavcan::NodeID node_id,
|
||||
const uavcan::protocol::GetNodeInfo_::Response &node_info)
|
||||
void NodeInfoPublisher::handleNodeInfoRetrieved(uavcan::NodeID node_id, const uavcan::protocol::GetNodeInfo_::Response &node_info)
|
||||
{
|
||||
const NodeInfo info(node_id, node_info);
|
||||
registerDevice(info.node_id.get(), &info, UINT32_MAX, DeviceCapability::NONE);
|
||||
@@ -78,8 +77,7 @@ void NodeInfoPublisher::startTimerIfNotRunning()
|
||||
}
|
||||
}
|
||||
|
||||
void NodeInfoPublisher::registerDevice(uint8_t node_id, const NodeInfo *info, uint32_t device_id,
|
||||
DeviceCapability capability)
|
||||
void NodeInfoPublisher::registerDevice(uint8_t node_id, const NodeInfo *info, uint32_t device_id, DeviceCapability capability)
|
||||
{
|
||||
const bool is_registering_info = (info != nullptr);
|
||||
|
||||
|
||||
@@ -1152,7 +1152,7 @@ void UavcanNode::publish_node_statuses()
|
||||
return;
|
||||
}
|
||||
|
||||
// See if we have NodeID <--> uORB_index mapped
|
||||
// See if we have NodeID <-> uORB_index mapped
|
||||
int uorb_index = -1;
|
||||
|
||||
for (uint8_t i = 0; i < ORB_MULTI_MAX_INSTANCES; i++) {
|
||||
|
||||
Reference in new issue
Block a user