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 Oct 1, 2024
1 parent a26ffd9 commit cefaa35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 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,13 @@ 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
// Do not log until we are more than 30 seconds into boot
if (AP_HAL::millis() < 30000){
return;
}

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

0 comments on commit cefaa35

Please sign in to comment.