Repository navigation
Conversation
VIDEO_SLOT_REC_ARMED, with VIDEO_SLOT_RECORD, records a slot only while the vehicle is armed. RECORD alone keeps recording always.
EntryLive is a small per-entry shared mapping the parent allocates when it adds an entry, keeping its video flag and FC sysid current on each keys reload. The session child tracks SAFETY_ARMED from the autopilot's HEARTBEAT and publishes it there from the first qualifying heartbeat on, and turning video on during a session now starts the heartbeat parsing it needs. The video child reads the armed state on every pass of its loop without touching a database. A recording opens on a join point, the latest still in the ring or the next to arrive, so the file starts on a keyframe. Disarm closes the segment and a re-arm always starts a new one. The last armed state outlives the session, so a telemetry dropout in flight keeps recording.
The per-slot record checkbox becomes a choice. A form from before posts the checkbox's 'y', which still means always.
|
Automated review note — AI-generated (Claude+Codex), validated against the live diff. Please sanity-check before acting. Reviewed at head Record-when-armed looks sound: the generation/CAS handoff, the arm-count ordering and the webadmin mode mapping all check out, and no blocking issue was found. Should fix
Minor (2)
Withdrawn: README placement in the webadmin commit, which matches this repo's history. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each video slot's record option is now never, when armed or always. "When armed" records only while the vehicle reports itself armed, so each flight gets its own segments and the disk budget isn't spent on a camera idling on the ground.
Arming
MAV_AUTOPILOT_INVALID) counts, and only the entry's FC system ID when one is set.Recording
Shared state
EntryLiveis a small per-entryMAP_SHARED|MAP_ANONYMOUSpage. The parent allocates it when it adds an entry, before any child is forked, so the parent, the session child and the video child share one copy.Configuration
y, which still means always.VIDEO_SLOT_REC_ARMEDbit alongsideVIDEO_SLOT_RECORD. From the CLI that is./keydb.py videoflag PORT2 SLOT record_armed.Testing
yand default seeding.Known limits
EntryLivepage (4 KB) stays mapped until the daemon restarts. It is reused if the port is re-added.supportproxyrestart, not just the webadmin.