Skip to content

Add a 50 fps camera frame rate - #317

Merged
follesoe merged 1 commit into
masterfrom
claude/framerate-fps-50
Oct 6, 2026
Merged

follesoe merged 1 commit into
masterfrom
claude/framerate-fps-50

Conversation

@follesoe

@follesoe follesoe commented Oct 6, 2026

Copy link
Copy Markdown
Member

Adds FRAMERATE_FPS_50 = 4 to Framerate, so that the app can ask the X3 Ultra for 50 fps (BluEye-Robotics/BlueyeApp#1999).

BluEye-Robotics/gst_rtsp_record#345 runs the Ultra at a true 25 or 50 fps instead of capturing 30 or 60 and dropping frames. It handles 50 fps on the ROS side already, but a protocol client has no value to ask for it with. Like 60, 50 opens the camera's 60 fps mode, so it is only available at QHD, 1080p and 720p, and at 4K it falls back to 25 as 60 falls back to 30. The enum comment now names both fallbacks.

FRAMERATE_FPS_25 drops "(Only supported on Pioneer/Pro/X1/X3)": the Ultra accepts 25 fps as well, and runs it at a true 25 fps with gst_rtsp_record#345.

The drone needs a mapping for the new value before it acts on it. from_framerate in p2_drone's src/node_comm/mapping_camera.cpp turns a value it does not know into 30 fps, and to_framerate reports 50 as 30. Per the enum comment, 50 should give 25 on the drones that cannot run it.

🤖 Generated with Claude Code

FRAMERATE_FPS_50 lets an app ask the X3 Ultra for 50 fps, which
BluEye-Robotics/gst_rtsp_record#345 runs as a true 50 fps: like 60, it
opens the camera's 60 fps mode. At 4K, which has no such mode, 50 falls
back to 25 as 60 falls back to 30, and the enum comment now says so.

FRAMERATE_FPS_25 is no longer marked as Pioneer/Pro/X1/X3 only. The X3
Ultra accepts 25 fps as well, and runs it at a true 25 fps with the same
change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@follesoe follesoe added the enhancement New feature or request label Oct 6, 2026
@follesoe follesoe self-assigned this Oct 6, 2026
@follesoe
follesoe requested a review from alexagv October 6, 2026 18:50
@follesoe
follesoe merged commit 9bfb989 into master Oct 6, 2026
5 of 8 checks passed
@follesoe
follesoe deleted the claude/framerate-fps-50 branch October 6, 2026 19:52
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