4/2にちゃんと動いたやつ

Dependencies:   mbed SBDBT arrc_mbed

Files at this revision

API Documentation at this revision

Comitter:
gennnisi
Date:
Sat Apr 02 06:44:55 2022 +0000
Parent:
11:9ae7fe40a807
Commit message:
4/2

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Mar 31 09:47:57 2022 +0000
+++ b/main.cpp	Sat Apr 02 06:44:55 2022 +0000
@@ -174,6 +174,19 @@
                 count_shot = 0;
             }
         }
+        
+        //装填
+        if(auto_mode == false) {
+            scrp.send1(BeanbagShot_num,10,sb.cross());
+            wait_ms(2);
+        }
+        
+        if(auto_mode == true){
+            if(sb.cross() == 1){
+                scrp.send1(TapeLed_num,1,10);
+                wait_ms(2);      
+            } 
+        }
 
         //農作物回収・設置
         if(sb.up() == 1) {