NagaokaRoboticsClub_mbedTeam / SerialMultiByte

Dependents:   Nucleo_NHK_2018_syudo_wheel a_team_R1370 Nucleo_NHK_2018_syudo_wheel 2018NHK_gaku_ver2 ... more

Revision:
2:a14ba6b3f198
Parent:
1:a28d64ee7a79
Child:
4:31dbd7ea393b
--- a/SerialMultiByte.h	Wed Aug 29 04:39:35 2018 +0000
+++ b/SerialMultiByte.h	Wed Sep 12 15:20:52 2018 +0000
@@ -7,7 +7,6 @@
 #define DEFAULT_DATA_SIZE 4
 
 #include "mbed.h"
-#include <vector>
 
 class SerialMultiByte : public RawSerial {
     public :
@@ -24,15 +23,13 @@
         void receiveLoop();
         void receiveByte();
         void checkData();
-    
-        Thread thread;
+        uint8_t *buffer;
+        uint8_t bufferPoint;
+        uint8_t receivedBytes;
         
         uint8_t header[2];
-        std::vector<uint8_t> buffer;
         uint16_t bufferSize;
         uint8_t* data;
-        
-        
 };
 
 #endif
\ No newline at end of file