for bob

Dependencies:   mbed-STM32F103C8T6_new

Files at this revision

API Documentation at this revision

Comitter:
hankzhang
Date:
Tue Aug 04 06:33:58 2020 +0000
Parent:
13:6fac0b6a946f
Commit message:
change the time of moving down to 1.4s

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
main.h Show annotated file Show diff for this revision Revisions of this file
diff -r 6fac0b6a946f -r 6aebe60d1989 main.cpp
--- a/main.cpp	Fri Jul 31 10:36:13 2020 +0000
+++ b/main.cpp	Tue Aug 04 06:33:58 2020 +0000
@@ -347,11 +347,13 @@
       g_tmp_cur_cnt = cur_cnt;  
       if(open_flag){        
         motor2_move(MOVING_DOWN);  
+        wait(1.4);
       }
       if(close_flag){
-        motor2_move(MOVING_UP);   
-      }      
-      wait(1.6);
+        motor2_move(MOVING_UP); 
+        wait(1.6);      
+      } 
+      
       motor2_move(STOP);
       cur_cnt = g_tmp_cur_cnt;  
       ready_flag = 0;
diff -r 6fac0b6a946f -r 6aebe60d1989 main.h
--- a/main.h	Fri Jul 31 10:36:13 2020 +0000
+++ b/main.h	Tue Aug 04 06:33:58 2020 +0000
@@ -49,7 +49,7 @@
 //static DigitalIn Hall1(PA_14);
 static DigitalIn Hall2(PB_3);
 
-static Serial bt_uart(PA_9, PA_10);
+//static Serial bt_uart(PA_9, PA_10);
 //static Serial wifi_uart(PA_2, PA_3);
 //static Serial debug_uart(PB_10, PB_11);