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
|
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.
Dependency
This branch is stacked on #11607 (DroneCAN: Fix H7 FDCAN and F7 bxCAN driver configuration), which is still open. Only the most recent commit (
dronecan: log cumulative bus-off count to blackbox slow frame) is new here — the diff currently includes #11607's commits too, until that PR merges and this one rebases ontomaintenance-10.xdirectly.Do not merge before #11607.