Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_DroneCAN_DNA_Server : adding delay while logging 'CAND' #213

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Temporary fix to address the missing nodes - 15 and 24
// Do not log until we are more than 30 seconds into boot
// (temporary fix for lossy logging, causing some CAND messages to be lost)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additional comment is updated

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All nodes are now showing up :
image

// 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
Loading