dronecan: log cumulative bus-off count to blackbox slow frame - #11729
dronecan: log cumulative bus-off count to blackbox slow frame#11729daijoubu wants to merge 1 commit into
Conversation
|
Just an FYI for contributors: The tentative schedule for INAV 10 is to have a full release in mid December. That means RC2 needs to be in early to mid November, which places INAV 10.0RC1 at September 1. Please plan to have any new features for INAV 10.0 ready for RC1 no later than September 1. After that, 10.1 will follow about six to seven months later. |
17d2370 to
5fa94cb
Compare
Adds droneCANBusOffCount to the blackbox S-frame, sourced from the existing dronecanGetBusOffCount() counter, so intermittent CAN bus faults are diagnosable from flight logs instead of requiring a live `dronecan` CLI session. TEC/REC/LEC/state and RX-drop-count were considered and dropped/deferred (see PLAN.md) as poor fits for the slow frame's throttled, change-triggered sampling model.
5fa94cb to
ece7fb2
Compare
|
RAM / Flash usage vs. base branch — commit
See RAM/flash optimization guide for techniques to reduce usage. |
|
Test firmware build ready — commit Download firmware for PR #11729 245 targets built. Find your board's
|
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoBlackbox: log DroneCAN cumulative bus-off count in slow (S) frame
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Inefficient predictor for counter
|
Summary
Adds
droneCANBusOffCountto the blackbox slow (S) frame, sourced from the existingdronecanGetBusOffCount()counter, so intermittent CAN bus faults are diagnosable from flight logs instead of requiring a livedronecanCLI session.Changes
droneCANBusOffCountfield in the blackbox S-frame (UNSIGNED_VB,PREDICT(0)), gated behindUSE_DRONECANescRPM/escTemperaturefields (field table row, struct member, write, load)Testing
blackbox_decode --debug: the new S-frame field decodes correctly and at the expected byte length across all 214 slow frames in the logCode Review
Reviewed with inav-code-review agent — no CRITICAL or IMPORTANT issues found.