Skip to content

Add the dive number and logfile name to DroneInfo - #323

Merged
jp-pino merged 1 commit into
masterfrom
claude/drone-info-dive-number
Oct 28, 2026
Merged

jp-pino merged 1 commit into
masterfrom
claude/drone-info-dive-number

Conversation

@jp-pino

@jp-pino jp-pino commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds two fields to DroneInfo so a recording that stores DroneInfoTel can be tied back to the dive it was recorded in:

  • uint32 dive_number = 15: the counter at the end of the dive logfile name (LOG_NUMBER in be-ros-start), e.g. 231 for BYEDP070012_ea9ac92e040aa9d4_00231.bez. 0 means unknown.
  • string log_name = 16: the logfile name without extension, e.g. BYEDP070012_ea9ac92e040aa9d4_00231. The counter restarts after an SSD swap or a reformat, which is why the log name has a storage id in it (BluEye-Robotics/p2_drone#988). log_name stays unique when that happens.

The first user is the multibeam .mbez: once a recording has left the drone, nothing in it says which dive it belongs to. Both fields are additive, so existing clients ignore them.

Testing

  • ./protolint.sh is clean.
  • protoc --cpp_out on all proto files.
  • C++ build for Jetson (cross-jetson-update), installed into the SDK sysroot on top of the mission branch build it currently holds. p2_drone builds against it.

Related

PR Part
#323 dive_number and log_name in DroneInfo
BluEye-Robotics/p2_drone#1192 sets them, and writes the latest DroneInfoTel into .mbez recordings

Merge order: this PR first, then p2_drone (its CI builds against ProtocolDefinitions master).

🤖 Generated with Claude Code

Lets recordings that store DroneInfoTel (e.g. .mbez multibeam files) be
tied back to the dive logfile they were recorded in. log_name stays
unique when the dive counter restarts, e.g. after the storage is
replaced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jp-pino jp-pino added this to the Blunux v5.2 milestone Oct 28, 2026
@jp-pino jp-pino added the enhancement New feature or request label Oct 28, 2026
@jp-pino jp-pino self-assigned this Oct 28, 2026
@jp-pino
jp-pino requested a review from follesoe October 28, 2026 14:35
@jp-pino
jp-pino merged commit 2bafbd5 into master Oct 28, 2026
14 checks passed
@jp-pino
jp-pino deleted the claude/drone-info-dive-number branch October 28, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants