F^3RC D班 / Mbed 2 deprecated clubvs2017_momoi

Dependencies:   mbed

Fork of clubvs2017_momoi by ROBOSTEP4期

Revision:
21:f4c8994122cc
Parent:
20:26099c7e87c6
Child:
22:a89e9c4fe7c4
diff -r 26099c7e87c6 -r f4c8994122cc User.cpp
--- a/User.cpp	Thu Mar 30 06:26:57 2017 +0000
+++ b/User.cpp	Thu Mar 30 06:42:25 2017 +0000
@@ -134,13 +134,13 @@
         motorLeftTwo = 0;
     }
 
-    if(( ButtonState >> BUTTONR1)&1 == 1) {
+    if(( ButtonState >> BUTTONL1)&1 == 1) {
         motorRightOne = 0.7 + flag;
         motorRightTwo = 0;
         motorLeftOne = 0;
         motorLeftTwo = 0.7 + flag;
     }
-    if(( ButtonState >> BUTTONL1)&1 == 1) {
+    if(( ButtonState >> BUTTONR1)&1 == 1) {
         motorRightOne = 0;
         motorRightTwo = 0.6 + flag;
         motorLeftOne = 0.6 + flag;