WASD, R to stop, Q to go straight at same speed

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
A_Sterner
Date:
Tue Apr 05 19:31:29 2016 +0000
Parent:
0:f8a9fb252057
Commit message:
WASD,r to stop, q to go straight

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r f8a9fb252057 -r b09a2f277b93 main.cpp
--- a/main.cpp	Tue Apr 05 19:22:11 2016 +0000
+++ b/main.cpp	Tue Apr 05 19:31:29 2016 +0000
@@ -286,7 +286,7 @@
     else if(c=='d'||c=='D'){
         s = s - ds;}
     else if(c=='q'||c=='Q'){
-        s = s=0;}
+        s = 0;}
     else if(c=='r'||c=='R'){
         s = 0;
         r = 0;}