From 8202c0864e4e64ac417084ccd9f856dd3495ff3b Mon Sep 17 00:00:00 2001 From: but0n Date: Mon, 28 Nov 2016 16:52:21 +0800 Subject: [PATCH] [MOD]: Remove '#define DEBUG_PID' --- src/main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index 19ed3fb..1161e4d 100644 --- a/src/main.c +++ b/src/main.c @@ -96,7 +96,7 @@ void uart_task() { #define DEBUG_MPU6050_EULER //Config -#if defined (DEBUG_PID) || defined (DEBUG_MPU6050_EULER) || defined (DEBUG_MPU6050_SOURCEDATA) || defined (DEBUG_BLDC) +#if defined (DEBUG_MPU6050_EULER) || defined (DEBUG_MPU6050_SOURCEDATA) || defined (DEBUG_BLDC) SixAxis sourceData; #endif @@ -116,7 +116,7 @@ int main() { // float i; // float d; // short output; -#ifdef DEBUG_PID +#ifdef DEBUG_BLDC pid_st g_pid_roll = { .InnerLast = 0, .OutterLast = 0, @@ -126,10 +126,8 @@ int main() { .Channel2 = &MOTOR4, .Gyro = &sourceData.gX, }; -#endif //Brushless motor auto init -#ifdef DEBUG_BLDC MOTOR_SETTING(); #endif @@ -162,7 +160,7 @@ int main() { MPU6050_debug(&sourceData); #endif -#if defined (DEBUG_PID) || defined (DEBUG_BLDC) +#if defined (DEBUG_BLDC) MPU6050_getStructData(&sourceData); Comput(sourceData);