This commit is contained in:
yxming66 2026-01-04 01:16:42 +08:00
parent 78dfbefb6b
commit 7bd10a6cd0

View File

@ -95,7 +95,9 @@ static void CMD_RC_BuildTrackCmd(CMD_t *ctx) {
return; return;
} }
ctx->output.track.cmd.enable = ctx->input.online[CMD_SRC_RC]; 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); CMD_Behavior_ProcessAll(ctx, &ctx->input, &ctx->last_input, CMD_MODULE_TRACK);
} }