terry LAI / Mbed 2 deprecated ESDC2014-pwm

Dependencies:   mbed

Fork of ESDC2014 by terry LAI

Revision:
4:a377ecb9364f
Parent:
3:4306d042af6f
Child:
5:098e6a44bd94
--- a/communication.h	Thu Jul 03 14:52:44 2014 +0000
+++ b/communication.h	Fri Jul 04 13:05:15 2014 +0000
@@ -38,7 +38,7 @@
 #ifndef _COMMUNICATION_H
 #define _COMMUNICATION_H
 
-#define BUFFER_SIZE 1024
+#define BUFFER_SIZE 256
 #define STARTER 0x7e
 #define COMPASS_STARTER 0x7d
 #define BUZZER_STARTER 0x7c
@@ -48,7 +48,7 @@
 class Communication
 {
 public:
-    Communication(MySerial* _DEBUG, MySerial *_IntelToMbed, MySerial *_MbedToArduino, COMPASS *_compass);
+    Communication(MySerial* _DEBUG, MySerial *_IntelToMbed, MySerial *_MbedToArduino, Compass *_compass);
     ~Communication();
 
     void putToBuffer(uint8_t _x, uint8_t communication_type); //0 is IntelToMbed, 1 is MbedTOArduino
@@ -68,7 +68,7 @@
     uint8_t getRotateDir();
 
     uint16_t campass_degree;
-    COMPASS *compass;
+    Compass *compass;
     
 private:
     void init();
@@ -94,7 +94,7 @@
     MySerial *_DEBUG;
     MySerial *_IntelToMbed;
     MySerial *_MbedToArduino;
-    COMPASS *_compass;
+    Compass *_compass;
 };
 
 #endif
\ No newline at end of file