Library for using the xbee-compatible Bluetooth Bee Module on an m3pi.

Dependencies:   SensoryTest

Fork of btbee by Nikolas Goldin

Revision:
9:6ae4359b73df
Parent:
8:fd8a30a6923d
Child:
10:7ef481d28dcd
--- a/main.cpp	Tue May 20 13:36:31 2014 +0000
+++ b/main.cpp	Tue May 20 13:53:38 2014 +0000
@@ -7,7 +7,10 @@
 int main() {
     
     float speed = 0.1;
-    float threshold = 0.01;
+    float threshold = 0.1;
+    
+    thinggy.locate(0,1);
+    thinggy.printf("Line Flw");
     
     wait(2.0);
     
@@ -19,12 +22,12 @@
         // Line is more than the threshold to the right, slow the left motor
         if (position > threshold) {
             thinggy.right(speed);
-           
+            
         }
  
         // Line is more than 50% to the left, slow the right motor
         else if (position < -threshold) {
-            thinggy.left(speed);
+            thinggy.left_motor(speed);
             
         }