Drivers for the mini robot designed for Princeton's MAE 433 course.

Dependencies:   mbed-dsp mbed-rtos mbed

Dependents:   MAE433_Library_Tester RobotBalancerv2

Revision:
5:e00cc0dab1c7
Parent:
1:918a505314ea
--- a/HC06Bluetooth.hpp	Sat Jun 25 00:37:31 2016 +0000
+++ b/HC06Bluetooth.hpp	Tue Jun 28 01:24:36 2016 +0000
@@ -59,6 +59,8 @@
 #include "mbed.h"
 #include <string>
 
+    const int dataBufferSize = 256;
+
 class HC06Bluetooth {
 public: // Public methods.
     /**
@@ -101,9 +103,9 @@
     void (*lineCallbackFunc) (const char*);
     /// Pointer to a callback function the client provides when a character is received.
     void (*charCallbackFunc) (char);
-    char dataReceivedBuffer[256];
+    char dataReceivedBuffer[dataBufferSize];
     int32_t dataReceivedBufferPos;
-    char dataReceivedBufferCopy[256];
+    char dataReceivedBufferCopy[dataBufferSize];
 };
 
 #endif /* HC06BLUETOOTH_H_ */