Skip to content

video: keep publisher rows across MAVLink connection snapshots - #56

Merged
tridge merged 2 commits into
ArduPilot:mainfrom
tridge:pr-conn-video-rows
Dec 1, 2026
Merged

tridge merged 2 commits into
ArduPilot:mainfrom
tridge:pr-conn-video-rows

Conversation

@tridge

@tridge tridge commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Summary

With a MAVLink session up, the web interface lost track of an entry's video publishers for most of the time. A raw thermal (Matroska) slot was then offered the MPEG-TS/HEVC player instead of the raw thermal links.

Cause

The MAVLink child's periodic snapshot of connections.tdb deleted every row for the entry, including the rows written by the video child. The video child wrote its rows back on its own 5 s tick, so they were present for about 2 s of each 5 s cycle. An entry with video publishers but no MAVLink connection was not affected.

Fix

The snapshot now deletes only the MAVLink index range, as the child exit path already does.

Testing

  • New test test_mavlink_snapshot_keeps_publisher_row: fails without the fix, passes with it.
  • tests/test_video_child.py, test_kill_drop.py, test_drop_lost_request.py, test_parent_housekeeping.py and test_conn2_slot_orphan.py pass.
  • On a live server: before the fix the publisher rows for an entry with MAVLink and three video slots came and went on a 5 s cycle; after it they were present in all 60 samples over 30 s.

The MAVLink child's periodic snapshot of connections.tdb deleted every
row for the entry, including the video child's. The video child wrote
its rows back on its own 5 s tick, so with a MAVLink session up they
were missing for most of each cycle. The web interface then showed no
publishers for the entry part of the time, and offered its MPEG-TS
player for a raw thermal (Matroska) slot.

Delete only the MAVLink index range, as the child exit path does.
@tridge tridge added the AIReview Request an automated AI review; picked up by the reviewprs sweep label Dec 1, 2026
@AP-Review

Copy link
Copy Markdown

Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting.
Verdict: ACCEPT

Reviewed at head 2daad395db.
Full report: https://firmware.ardupilot.org/Tools/APReview/DevCallReviews/PRReviews/ardupilot/supportproxy/56/1.html#prSupportProxy-56

The change looks correct, with no issues found. The MAVLink snapshot now deletes only its own 0..999 index range. That matches the video child's complementary 1000+ range and the parent's existing child-exit cleanup, so publisher rows no longer disappear between video ticks. The new test passes on this head and fails with the old supportproxy.cpp, so it does guard the regression.

@tridge
tridge marked this pull request as ready for review December 1, 2026 08:21
@tridge
tridge merged commit 086b61d into ArduPilot:main Dec 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIReview Request an automated AI review; picked up by the reviewprs sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants