Skip to content

Commit

Permalink
AP_DroneCAN_DNA_Server : adding delay while logging 'CAND'
Browse files Browse the repository at this point in the history
This delay was added since the logging of CAND data for node-IDs 15 and 24 were always missing. More details of this problem can be found here : https://carbonix.atlassian.net/jira/software/c/projects/SW/boards/42/timeline?selectedIssue=SW-398
  • Loading branch information
Pradeep-Carbonix committed Sep 30, 2024
1 parent a26ffd9 commit 452c561
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/AP_DroneCAN/AP_DroneCAN_DNA_Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ void AP_DroneCAN_DNA_Server::handleNodeInfo(const CanardRxTransfer& transfer, co
if (transfer.source_node_id > MAX_NODE_ID) {
return;
}

// Temporary fix to address the missing nodes - 15 and 24
if (AP_HAL::millis() < 30000){
return;
}

/*
if we haven't logged this node then log it now
*/
Expand Down

0 comments on commit 452c561

Please sign in to comment.