更改调试时串口波特率为 115200

This commit is contained in:
lxbpxylps@126.com 2021-02-15 13:14:46 +08:00
parent 429fa8a6a9
commit 5530e6c0fd

View File

@ -104,7 +104,8 @@ void TurnDirection(uint8_t direction, float speed_rate = 1.0);
void setup() void setup()
{ {
#ifdef TAICHI_DEBUG #ifdef TAICHI_DEBUG
Serial.begin(9600); Serial.begin(115200);
Serial.println("#TAICHI: ======================setup()=====================");
#endif #endif
move.Stop(); move.Stop();
@ -123,6 +124,10 @@ void setup()
void loop() void loop()
{ {
#ifdef TAICHI_DEBUG
Serial.println("#TAICHI: ====================New loop()====================");
#endif
//情况一:刚完整经过普通点,下一个点为普通点 //情况一:刚完整经过普通点,下一个点为普通点
if (route[passed_flag][TYPE] == NORMAL_POINT && route[next_flag][TYPE] == NORMAL_POINT) if (route[passed_flag][TYPE] == NORMAL_POINT && route[next_flag][TYPE] == NORMAL_POINT)
{ {
@ -196,6 +201,10 @@ void loop()
if (++next_next_flag > max_flag) if (++next_next_flag > max_flag)
next_next_flag = 0; next_next_flag = 0;
#ifdef TAICHI_DEBUG
Serial.println("#TAICHI: ====================End loop()====================");
#endif
} }
@ -430,4 +439,4 @@ void TurnDirection(uint8_t direction, float speed_rate)
//调试输出直行或后退或转向结束 //调试输出直行或后退或转向结束
Serial.println("#TAICHI: End Turn Direction"); Serial.println("#TAICHI: End Turn Direction");
#endif #endif
} }