Skip to content

Commit

Permalink
#11 连续两次初始化电调
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyyttxx committed Dec 31, 2017
1 parent ef7e7da commit 31510f2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion project/p10-ANO/application/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static void USART_Config(void);
int main(void)
{
delayinit();
#ifdef ndebug
#ifndef ndebug
motor_pwm_init();
motor_pwm_1 = motor_pwm_2 = motor_pwm_3 = motor_pwm_4 = motor_pwm_max;
delay(2000);
Expand All @@ -39,6 +39,15 @@ int main(void)
motor_pwm_1 = motor_pwm_2 = motor_pwm_3 = motor_pwm_min;
delay(5000);
RCV_IC_init();
#else
delay(4000);
motor_pwm_init();
motor_pwm_1 = motor_pwm_2 = motor_pwm_3 = motor_pwm_4 = motor_pwm_min;
delay(4000);
motor_pwm_init();
motor_pwm_1 = motor_pwm_2 = motor_pwm_3 = motor_pwm_4 = motor_pwm_min;
delay(4000);
RCV_IC_init();
#endif
while (mpu_dmp_init());

Expand Down

0 comments on commit 31510f2

Please sign in to comment.