hassya_been

Dependencies:   mbed SBDBT arrc_mbed air

Revision:
0:b36b6f2c79f9
diff -r 000000000000 -r b36b6f2c79f9 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Feb 01 13:12:49 2022 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "scrp_slave.hpp"
+#include "air.hpp"
+#include "sbdbt.hpp"
+sbdbt ds3(A0, A1);
+Air catch_been(PA_0);
+
+//↓回収用
+void CATCH_BEEN(bool data){
+    catch_been.move(data);
+}
+
+int main(){
+    bool catch_been=0,old_circle;
+    while(true){
+//↓コントローラー関係
+        if(old_circle<ds3.circle()) catch_been=!catch_been;
+        old_circle=ds3.circle();
+//↓関数関係    
+        CATCH_BEEN(catch_been);
+        }
+}
\ No newline at end of file