123321
This commit is contained in:
parent
d71dbde8d8
commit
383ad03cda
@ -17,7 +17,7 @@ static void CMD_RC_BuildChassisCmd(CMD_t *ctx) {
|
|||||||
CMD_RCModeMap_t *map = &ctx->config->rc_mode_map;
|
CMD_RCModeMap_t *map = &ctx->config->rc_mode_map;
|
||||||
|
|
||||||
/* 根据左拨杆位置选择模式 */
|
/* 根据左拨杆位置选择模式 */
|
||||||
switch (ctx->input.rc.sw[1]) {
|
switch (ctx->input.rc.sw[0]) {
|
||||||
case CMD_SW_UP:
|
case CMD_SW_UP:
|
||||||
ctx->output.chassis.cmd.mode = map->sw_left_up;
|
ctx->output.chassis.cmd.mode = map->sw_left_up;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user