日常更新,适配3.5寸桨叶版,新加障碍分段参数
This commit is contained in:
@@ -42,7 +42,6 @@ inline static float clip_f32(float x, float low, float up)
|
||||
}
|
||||
|
||||
#define FIX_DRIVE 0
|
||||
|
||||
void by_pwm_init(void)
|
||||
{
|
||||
gpio_init(D4, GPO, 1, GPO_PUSH_PULL);
|
||||
@@ -61,9 +60,9 @@ void by_pwm_init(void)
|
||||
pwm_init(FAN_RB_PWM_B_PIN, 20000, 7000);
|
||||
while (1);
|
||||
#elif FIX_DRIVE == 2
|
||||
pwm_init(FAN_LS_PWM_A_PIN, 20000, 0);
|
||||
pwm_init(FAN_LS_PWM_A_PIN, 20000, 1000);
|
||||
pwm_init(FAN_LS_PWM_B_PIN, 20000, 0);
|
||||
pwm_init(FAN_RS_PWM_A_PIN, 20000, 0);
|
||||
pwm_init(FAN_RS_PWM_A_PIN, 20000, 1000);
|
||||
pwm_init(FAN_RS_PWM_B_PIN, 20000, 0);
|
||||
pwm_init(FAN_LB_PWM_A_PIN, 20000,1000);
|
||||
pwm_init(FAN_LB_PWM_B_PIN, 20000, 0);
|
||||
|
||||
Reference in New Issue
Block a user