From 7bd10a6cd078ebc3a2c4107addfda1d3940a49f5 Mon Sep 17 00:00:00 2001 From: yxming66 <2389287465@qq.com> Date: Sun, 4 Jan 2026 01:16:42 +0800 Subject: [PATCH] 231312 --- User/module/cmd/cmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/User/module/cmd/cmd.c b/User/module/cmd/cmd.c index fdf3f02..9278359 100644 --- a/User/module/cmd/cmd.c +++ b/User/module/cmd/cmd.c @@ -95,7 +95,9 @@ static void CMD_RC_BuildTrackCmd(CMD_t *ctx) { return; } ctx->output.track.cmd.enable = ctx->input.online[CMD_SRC_RC]; - ctx->output.track.cmd.vel = ctx->input.rc.joy_right.y; + ctx->output.track.cmd.vel = (ctx->input.rc.joy_right.y * 2.0f > 1.0f) + ? 1.0f + : ctx->input.rc.joy_right.y * 2.0f; CMD_Behavior_ProcessAll(ctx, &ctx->input, &ctx->last_input, CMD_MODULE_TRACK); }