diff --git a/User/module/cmd.c b/User/module/cmd.c index 9ad13c7..c4c8281 100644 --- a/User/module/cmd.c +++ b/User/module/cmd.c @@ -187,7 +187,7 @@ int8_t CMD_CtrlSet(Chassis_CMD_t *c_cmd, const CMD_RC_t *rc, Gimbal_CMD_t *g_cmd s_cmd->mode = SHOOT_MODE_SINGLE; break; case CMD_SW_DOWN: - s_cmd->mode = SHOOT_MODE_CONTINUE; + s_cmd->mode = SHOOT_MODE_BURST; break; case CMD_SW_ERR: s_cmd->mode = SHOOT_MODE_SAFE; diff --git a/User/module/config.c b/User/module/config.c index 6093538..3ccd029 100644 --- a/User/module/config.c +++ b/User/module/config.c @@ -240,8 +240,8 @@ static const Config_Param_t config = { .basic.extra_deceleration_ratio = 1, .basic.ratio_multilevel[0] = 1.0f, .basic.num_trig_tooth = 8, - .basic.shot_freq = 20.0f, - .basic.shot_burst_num = 5, + .basic.shot_freq = 5.0f, + .basic.shot_burst_num = 1, .jamDetection.enable = true, .jamDetection.threshold = 120.0f, diff --git a/User/task/shoot.c b/User/task/shoot.c index bd873e7..1b0b648 100644 --- a/User/task/shoot.c +++ b/User/task/shoot.c @@ -4,6 +4,7 @@ */ /* Includes ----------------------------------------------------------------- */ +#include "module/cmd.h" #include "task/user_task.h" /* USER INCLUDE BEGIN */ #include "module/shoot.h" @@ -51,6 +52,7 @@ if(shoot_cmd.control_mode==SHOOT_REMOTE) } else if(shoot_cmd.control_mode==SHOOT_AI) { + shoot_cmd.mode = SHOOT_MODE_SINGLE; if(shoot_ai_cmd.mode==0 || shoot_ai_cmd.mode==1) { shoot_cmd.firecmd=false; @@ -59,6 +61,7 @@ if(shoot_ai_cmd.mode==0 || shoot_ai_cmd.mode==1) } else if(shoot_ai_cmd.mode==2) { + shoot_cmd.firecmd=true; shoot_cmd.ready=true; }