DP / Mbed 2 deprecated RCControlOOPWithThrottle

Dependencies:   mbed

Fork of RCControlOOP by DP

Revision:
2:e9042e88abf1
Parent:
1:e694ee3b4a7f
Child:
3:b3ec75e9163f
--- a/WirelessMousr.cpp	Sun Sep 21 14:43:47 2014 +0000
+++ b/WirelessMousr.cpp	Wed Oct 08 16:59:47 2014 +0000
@@ -18,20 +18,24 @@
     // state machine
     switch(state)
     {
-    case 's':
+    case 'v':   //STOP
       this->stop(); break;
-    case 'w':
-      pc.putc('g');
+    case 'w':   //STRAIGHT
+      //pc.putc('g');
       this->straight(getStraightSpeed()); break;
-    case 'a':
+    case 's':   //STRAIGHT SLOW
+      //pc.putc('g');
+      this->straight(getStraightSlowSpeed()); break;
+    case 'a':   //ROTATE LEFT MEDIUM
       this->left(getRotateSpeed()); break;
-    case 'd':
+    case 'd':   //ROTATE RIGHT MEDIUM
       this->right(getRotateSpeed()); break;
-    case 'x':
-      this->backwards(getStraightSpeed()); break;
-    case 'q':
+    case 'x':   //BACKWARDS
+      this->backwards(getStraightSlowSpeed()); break;
+    case 'q':   //ROTATE LEFT FAST (CHANGE TO CIRCLE)
+      pc.putc('g');  
       this->left(getRotateFastSpeed()); break;
-    case 'e':
+    case 'e':   //ROTATE RIGHT FAST (CHANGE TO CIRCLE) 
       this->right(getRotateFastSpeed()); break;
     case 'z':
       this->left(getRotateSlowSpeed()); break;