From 31510f2f3d7d57485fac2d73a954110593e33ac2 Mon Sep 17 00:00:00 2001 From: xxyyttxx_air <893166601@qq.com> Date: Sun, 31 Dec 2017 11:59:52 +0800 Subject: [PATCH] =?UTF-8?q?#11=20=E8=BF=9E=E7=BB=AD=E4=B8=A4=E6=AC=A1?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E7=94=B5=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/p10-ANO/application/main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/project/p10-ANO/application/main.c b/project/p10-ANO/application/main.c index d301b88..7ba06af 100644 --- a/project/p10-ANO/application/main.c +++ b/project/p10-ANO/application/main.c @@ -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); @@ -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());