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

Conversation

Pradeep-Carbonix
Copy link
Contributor

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

Copy link
Collaborator

@robertlong13 robertlong13 left a comment

Choose a reason for hiding this comment

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

LGTM, just update the comment, and confirm that you've tested and we get all CAND messages.

@@ -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
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

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
@Pradeep-Carbonix Pradeep-Carbonix force-pushed the feature/SW-398-cand-missing-for-cpn-15-and-cpn-24 branch from 452c561 to cefaa35 Compare October 1, 2024 00:29
@Pradeep-Carbonix Pradeep-Carbonix merged commit 33bd987 into CxPilot-7 Oct 1, 2024
47 checks passed
@Pradeep-Carbonix Pradeep-Carbonix deleted the feature/SW-398-cand-missing-for-cpn-15-and-cpn-24 branch October 1, 2024 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants