231312
This commit is contained in:
parent
78dfbefb6b
commit
7bd10a6cd0
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user