test

Dependencies:   mbed Encoder

Files at this revision

API Documentation at this revision

Comitter:
koheim
Date:
Tue Dec 15 08:12:06 2020 +0000
Parent:
0:3dee13ff6060
Commit message:
aaa

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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){