Skip to content

Release: DevC camera sync, auto-aim topics and CDC interface names for the v4 auto-aim chain - #31

Merged
Jiu-xiao merged 7 commits into
masterfrom
dev
Oct 11, 2026
Merged

Jiu-xiao merged 7 commits into
masterfrom
dev

Conversation

@Jiu-xiao

Copy link
Copy Markdown
Contributor

把 dev 合进 master,使 DevC 固件与车载 BSP master(bsp-linux-autoaim)的 v4 自瞄链路对齐。上一次发版(#30)早于 #29 合入 dev,所以 master 还缺下面这些。

  • 英雄、哨兵增加 CameraSync(相机触发,5 ms / 200 Hz)与自瞄口 SharedTopic 转发:下行 camera_sync_command,上行 IMU(gimbal_gyro/gimbal_accl/gimbal_quat)、camera_sync_result、robot_game_ref;英雄 IMU Topic 改名为 gimbal_*。
  • 步兵 omni_infantry_3/4 的 trigger_period_us 由 10(单位 µs,错值)改为 5000。
  • CDC 接口名:FS XRobot Terminal、HS usb_otg_hs_cdc XRobot AutoAim、usb_otg_hs_cdc2 XRobot Aux。车载 BSP 按 VID:PID 加接口名 XRobot AutoAim 打开 DevC,master 固件没有这个接口名时打不开。
  • HS CDC 发送缓冲 256 B(117 B 的 robot_game_ref 包)。

LibXR、xrobot、CodeGenerator 与 master 相同(LibXR v2.0.1,含 xrobot-org/libxr#333 的 CDC 修复;CodeGenerator 6.0.1 重新生成的 app_main.cpp 与提交一致)。dev CI 通过。

提交:

  • a9ec7de feat: 256 B HS CDC transmit buffers for the larger robot_game_ref pack
  • 65fb5bf Camera sync and auto-aim topics for hero and sentry; 10 ms trigger period
  • 0568163 Name the CDC interfaces
  • 5947bd4 Update LibXR to 98bc7b2: CDC sends after enumeration on STM32 OTG
  • 6398ede CameraSync trigger period 5 ms (200 Hz) for hero, sentry and omni infantry
  • 339f089 Merge dev: LibXR v2.0.1, xrobot 1.0.1, CodeGenerator 6.0.1
  • 9a565d3 Merge pull request v4 自瞄重构:DevC 相机同步、自瞄 Topic 与 CDC 接口名 #29 from QDU-Robomaster/refactor/autoaim-v4

未在实车验证:英雄 BMI088 安装旋转与上位机 imu_axes: BODY、哨兵 X_FORWARD_Y_LEFT_Z_UP。13T 台架会用 dev 固件(与本 PR 相同内容)配合车载 BSP master 做一次正式配置验证,结果补在本 PR 评论里。

Jiu-xiao and others added 7 commits October 6, 2026 17:43
RobotGameRefereePack grows from 92 to 117 bytes (Referee
feat/host-referee-pack). SharedTopicClient needs payload + 17 bytes of the
UART write queue: 134 > 128. usb_otg_hs_cdc (omni_infantry_3/4) and
usb_otg_hs_cdc2 (sentry) get a 256 B transmit buffer (CDCUart tx_buffer_size
128 -> 256, app_main.cpp regenerated with generator 6.0.0), leaving 105 B
for later fields. The lock pins Referee feat/host-referee-pack f3f44bd.
FreeRTOS heap (heap_1, 64 KiB) grows by about 0.66 KiB per affected config
(2 x 128 B CDC buffer + 16 SharedTopicClient slots x 25 B).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…riod

hero: rename the IMU topics to gimbal_gyro/gimbal_accl/gimbal_quat, add CameraSync and forward camera_sync_command/camera_sync_result and robot_game_ref over the auto-aim SharedTopic.
sentry: add CameraSync and the same forwarding; the host converts the board's x-forward IMU axes.
omni_infantry_3/4: trigger_period_us is in microseconds, 10 -> 10000.
XRobot Terminal (FS), XRobot AutoAim and XRobot Aux (HS) set through interface in libxr_config.yaml; the auto-aim host opens its port by VID:PID and XRobot AutoAim. Needs the generator release that supports cdc interface.
Includes xrobot-org/libxr#333. With 783b157 no USB CDC port sent any data: writes made before configuration filled the queue and transmission never restarted, and on OTG_HS a late EPDISD flush discarded the first packet after SET_CONFIGURATION.
…antry

Matches the host CameraFrameSync trigger_period_us. Bench-verified on PI-HAILO-13T with LibXR 98bc7b29.
v4 自瞄重构:DevC 相机同步、自瞄 Topic 与 CDC 接口名
@Jiu-xiao
Jiu-xiao merged commit ee9abfe into master Oct 11, 2026
26 checks passed
@Jiu-xiao
Jiu-xiao deleted the dev branch October 11, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant