keiichi shimazu / Mbed 2 deprecated NITKK2019_WinterB-Manual_madebyshimazu

Dependencies:   mbed mdc_read

Revision:
4:90b840185921
Parent:
3:42a8da1837f7
diff -r 42a8da1837f7 -r 90b840185921 Control.cpp
--- a/Control.cpp	Sat Dec 28 06:10:55 2019 +0000
+++ b/Control.cpp	Sat Dec 28 07:38:40 2019 +0000
@@ -74,6 +74,26 @@
     }else{
         pwm[5] = 0.0f;
     }
+    if(CheckButton(sb.PS3_SQUARE_bit(),s_time > 500)){
+        if(ls){
+            pwm[6] = 0.40f;
+            pwm[7] = 0.40f;
+        }else{
+            pwm[6] = 0.0f;
+            pwm[7] = 0.0f;
+        }
+    }else{
+        pwm[6] = 0.0f;
+        pwm[7] = 0.0f;
+    }
+    if(CheckButton(sb.PS3_R1_bit(),R1)&&CheckButton(sb.PS3_L1_bit(),L1)){
+        pwm[8] = 0.60f;
+    }else{
+        pwm[8] = 0.0f;
+    }    
+
+
+
 }
 
     
\ No newline at end of file