linetrace saikyou

Dependencies:   RemoteIR TextLCD

Revision:
27:90962c01bfeb
Parent:
26:0badbc9f9cb3
Child:
28:cb51cafca490
--- a/main.cpp	Wed Aug 05 07:51:56 2020 +0000
+++ b/main.cpp	Thu Aug 06 02:18:20 2020 +0000
@@ -10,15 +10,15 @@
 #include "platform/mbed_thread.h"
 #include "TextLCD.h"
 
-Serial pc(USBTX, USBRX);
+RawSerial pc(USBTX, USBRX);
 
 /* マクロ定義、列挙型定義 */
-#define     MIN_V 2.0       // 電圧の最小値
-#define     MAX_V 2.67      // 電圧の最大値
-#define     LOW     0       // モーターOFF
-#define     HIGH    1       // モーターON
-#define     NORMAL   0      // 普通
-#define     FAST   1        // 速い
+#define     MIN_V      2.0  // 電圧の最小値
+#define     MAX_V      2.67 // 電圧の最大値
+#define     LOW        0    // モーターOFF
+#define     HIGH       1    // モーターON
+#define     NORMAL     0    // 普通
+#define     FAST       1    // 速い
 #define     VERYFAST   2    // とても速い
 
 /* 操作モード定義 */
@@ -101,7 +101,7 @@
 Timer time2;
 int bufflen, DataRX, ount, getcount, replycount, servreq, timeout;
 int bufl, ipdLen, linkID, weberror, webcounter,click_flag;
-float temperature, AdcIn, Ht;
+//float temperature, AdcIn, Ht;
 float R1=100000, R2=10000; // resistor values to give a 10:1 reduction of measured AnalogIn voltage
 char Vcc[10];
 char webcount[8];
@@ -111,7 +111,7 @@
 char cmdbuff[32];
 char replybuff[1024];
 char webdata[1024]; // This may need to be bigger depending on WEB browser used
-char webbuff[4096*4];     // Currently using 1986 characters, Increase this if more web page data added
+char webbuff[4096];     // Currently using 1986 characters, Increase this if more web page data added
 int port        =80;  // set server port
 int SERVtimeout =5;    // set server timeout in seconds in case link breaks.
 char ssid[32] = "mbed02"; // enter WiFi router ssid inside the quotes