mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 11:38:56 +08:00
uavcan: add warning about CAN error counter reading issue (#26492)
Add warning message in print_info() to alert users that CAN error counter values may increase during the function call due to internal counter reading implementation. Users should not fully trust these counters until the underlying issue is fixed. Co-authored-by: ljarvela <lasse.jarvela@iceye.com>
This commit is contained in:
@@ -1163,6 +1163,11 @@ UavcanNode::print_info()
|
||||
|
||||
printf("\n");
|
||||
|
||||
// See https://github.com/PX4/PX4-Autopilot/issues/22871
|
||||
printf("WARNING: CAN error counter values below may increase during this function call due to internal counter reading implementation.\n");
|
||||
printf("Do not fully trust these counters until this issue is fixed.\n");
|
||||
printf("\n");
|
||||
|
||||
// UAVCAN node perfcounters
|
||||
printf("UAVCAN node status:\n");
|
||||
printf("\tInternal failures: %" PRIu64 "\n", _node.getInternalFailureCount());
|
||||
|
||||
Reference in New Issue
Block a user