CansatB_2021 / Mbed 2 deprecated cansat_integrated

Dependencies:   mbed Servo BMP180

Revision:
6:6fe6e3554a46
Parent:
5:e1001bfc423a
Child:
8:7209c810309d
--- a/main.cpp	Thu Oct 28 09:12:27 2021 +0000
+++ b/main.cpp	Thu Oct 28 13:50:27 2021 +0000
@@ -1,20 +1,19 @@
 #include "mbed.h"
+#include "direction.h"
 #include "Landing_Judgement.h"
-#include "direction.h"
-
 DigitalOut Nichrome(A6);
-                 
+            
 int main(){
-
-    int land_judgement_1=0;
-
+    int land_judgement1=0;
     //着地判定
     while(1){
-        land_judgement_1 = Landing_Judgement.landing_judgement1();
-        if(land_judgement_1==1){
+        land_judgement1 = Landing_Judgement.land();
+        if(land_judgement1==1){
         break;
         }  
     }
+    
+    wait(5);
     wait(30);
 
     //パラシュート分離
@@ -24,10 +23,8 @@
 
     //中間地点を経由してゴール地点まで自律移動
     direction.walk();
-
+    
     return 0;
 
 }
-
-    
-    
\ No newline at end of file
+   
\ No newline at end of file