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

Dependencies:   mbed SBDBT arrc_mbed

Revision:
12:e96b0757577d
Parent:
11:9ae7fe40a807
--- 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) {