修改recy模式
This commit is contained in:
parent
6d581c4c04
commit
695262bcd1
Binary file not shown.
11411
MDK-ARM/DevC/DevC.hex
11411
MDK-ARM/DevC/DevC.hex
File diff suppressed because it is too large
Load Diff
@ -222,10 +222,11 @@ int8_t Shoot_Control(Shoot_t *s, CMD_ShootCmd_t *s_cmd,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case FIRE_MODE_CONT: { /* 持续开火模式 */
|
case FIRE_MODE_CONT: { /* Recy模式 */
|
||||||
float shoot_freq = HeatLimit_ShootFreq(
|
// float shoot_freq = HeatLimit_ShootFreq(
|
||||||
s->heat_ctrl.heat, s->heat_ctrl.heat_limit, s->heat_ctrl.cooling_rate,
|
// s->heat_ctrl.heat, s->heat_ctrl.heat_limit, s->heat_ctrl.cooling_rate,
|
||||||
s->heat_ctrl.heat_increase, s->param->model == SHOOT_MODEL_17MM);
|
// s->heat_ctrl.heat_increase, s->param->model == SHOOT_MODEL_17MM);
|
||||||
|
float shoot_freq = 20.0f; //射频
|
||||||
s->fire_ctrl.period_ms =
|
s->fire_ctrl.period_ms =
|
||||||
(shoot_freq == 0.0f) ? UINT32_MAX : (uint32_t)(1000.f / shoot_freq);
|
(shoot_freq == 0.0f) ? UINT32_MAX : (uint32_t)(1000.f / shoot_freq);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user