From 5530e6c0fde596e7960268f3dc05cc2f2e01bfd8 Mon Sep 17 00:00:00 2001 From: "lxbpxylps@126.com" Date: Mon, 15 Feb 2021 13:14:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=B0=83=E8=AF=95=E6=97=B6?= =?UTF-8?q?=E4=B8=B2=E5=8F=A3=E6=B3=A2=E7=89=B9=E7=8E=87=E4=B8=BA=20115200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TaiChi/TaiChi.ino | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/TaiChi/TaiChi.ino b/TaiChi/TaiChi.ino index 1f55f59..73b3392 100644 --- a/TaiChi/TaiChi.ino +++ b/TaiChi/TaiChi.ino @@ -104,7 +104,8 @@ void TurnDirection(uint8_t direction, float speed_rate = 1.0); void setup() { #ifdef TAICHI_DEBUG - Serial.begin(9600); + Serial.begin(115200); + Serial.println("#TAICHI: ======================setup()====================="); #endif move.Stop(); @@ -123,6 +124,10 @@ void setup() void loop() { + #ifdef TAICHI_DEBUG + Serial.println("#TAICHI: ====================New loop()===================="); + #endif + //情况一:刚完整经过普通点,下一个点为普通点 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) 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"); #endif -} \ No newline at end of file +}