test

Dependencies:   mbed Encoder

Revision:
1:88c8afd436fc
Parent:
0:3dee13ff6060
--- a/main.cpp	Tue Dec 15 06:05:50 2020 +0000
+++ b/main.cpp	Tue Dec 15 08:12:06 2020 +0000
@@ -39,7 +39,7 @@
         if(Button1==0){
             led1=1;
             led2=0;
-            clutch=0;   //on
+            clutch=1;   //off
             count=0;
             motoru=0;
             motor_state=0;
@@ -50,6 +50,7 @@
             led1=0;
             motoru=0.5;
             motor_state=1;
+            clutch=0;//on
             pc.printf("start loading\r\n");
         } 
         if (count>4500&&read_v_state==0){