|
|
|
|
@ -630,11 +630,11 @@ void PID_Init(void) { |
|
|
|
|
lineFwConfig.lastError = 0; |
|
|
|
|
lineFwConfig.integral = 0; |
|
|
|
|
#elif PL_IS_INTRO_ZUMO_ROBOT2 || PL_IS_INTRO_ZUMO_K22 |
|
|
|
|
lineFwConfig.pFactor100 = 5500; |
|
|
|
|
lineFwConfig.pFactor100 = 4000;//5500;
|
|
|
|
|
lineFwConfig.iFactor100 = 15; |
|
|
|
|
lineFwConfig.dFactor100 = 100; |
|
|
|
|
lineFwConfig.dFactor100 = 500;//100;
|
|
|
|
|
lineFwConfig.iAntiWindup = 100000; |
|
|
|
|
lineFwConfig.maxSpeedPercent = 40; |
|
|
|
|
lineFwConfig.maxSpeedPercent = 25;//40;
|
|
|
|
|
lineFwConfig.lastError = 0; |
|
|
|
|
lineFwConfig.integral = 0; |
|
|
|
|
#else |
|
|
|
|
@ -672,11 +672,11 @@ void PID_Init(void) { |
|
|
|
|
posLeftConfig.iAntiWindup = 200; |
|
|
|
|
posLeftConfig.maxSpeedPercent = 40; |
|
|
|
|
#elif (PL_CONFIG_APP_LINE_FOLLOWING || PL_CONFIG_APP_LINE_MAZE) /* line/maze, high speed */ |
|
|
|
|
posLeftConfig.pFactor100 = 1000; |
|
|
|
|
posLeftConfig.pFactor100 = 2000;//1000;
|
|
|
|
|
posLeftConfig.iFactor100 = 2; |
|
|
|
|
posLeftConfig.dFactor100 = 50; |
|
|
|
|
posLeftConfig.iAntiWindup = 200; |
|
|
|
|
posLeftConfig.maxSpeedPercent = 40; |
|
|
|
|
posLeftConfig.maxSpeedPercent = 35;//40;
|
|
|
|
|
#else /* defaults */ |
|
|
|
|
posLeftConfig.pFactor100 = 1000; |
|
|
|
|
posLeftConfig.iFactor100 = 1; |
|
|
|
|
|