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: document CANS (Can Bus Statistics) log message #28661

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
18 changes: 18 additions & 0 deletions libraries/AP_DroneCAN/AP_DroneCAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1926,6 +1926,24 @@ void AP_DroneCAN::logging(void)
return;
}
const auto &s = *stats;

// @LoggerMessage: CANS
// @Description: CAN Bus Statistics
// @Field: TimeUS: Time since system startup
// @Field: I: driver index
// @Field: T: transmit success count
// @Field: Trq: transmit request count
// @Field: Trej: transmit reject count
// @Field: Tov: transmit overflow count
// @Field: Tto: transmit timeout count
// @Field: Tab: transmit abort count
// @Field: R: receive count
// @Field: Rov: receive overflow count
// @Field: Rer: receive error count
// @Field: Bo: bus offset error count
// @Field: Etx: ESC successful send count
// @Field: Stx: Servo successful send count
// @Field: Ftx: ESC/Servo failed-to-send count
AP::logger().WriteStreaming("CANS",
"TimeUS,I,T,Trq,Trej,Tov,Tto,Tab,R,Rov,Rer,Bo,Etx,Stx,Ftx",
"s#-------------",
Expand Down
Loading