feat:发车靠积分屏蔽斑马线;发车起步先检查侧面风扇能否成功拖动;负压状态停车

This commit is contained in:
2024-08-11 20:08:38 +08:00
parent 53d06467d6
commit 92eaf372ff
4 changed files with 66 additions and 42 deletions

View File

@@ -70,8 +70,8 @@ void by_pwm_update_duty(uint32_t update_pwm_duty1, uint32_t update_pwm_duty2)
*/
void by_pwm_power_duty(int32_t bpwm_duty_ls, int32_t bpwm_duty_rs, int32_t bpwm_duty_lb, int32_t bpwm_duty_rb)
{
bpwm_duty_ls = clip_s32(bpwm_duty_ls, 500, 980);
bpwm_duty_rs = clip_s32(bpwm_duty_rs, 500, 980);
bpwm_duty_ls = clip_s32(bpwm_duty_ls, 500, 1000);
bpwm_duty_rs = clip_s32(bpwm_duty_rs, 500, 1000);
bpwm_duty_lb = clip_s32(bpwm_duty_lb, 2500, 6000);
bpwm_duty_rb = clip_s32(bpwm_duty_rb, 2500, 6000);
pwm_set_duty(FAN_LS_PWM_PIN, bpwm_duty_ls);