CansatB_2021 / Mbed 2 deprecated cansat_integrated

Dependencies:   mbed Servo BMP180

Revision:
5:e1001bfc423a
Parent:
4:6e24a1b3edca
Child:
6:6fe6e3554a46
diff -r 6e24a1b3edca -r e1001bfc423a main.cpp
--- a/main.cpp	Thu Oct 28 08:31:00 2021 +0000
+++ b/main.cpp	Thu Oct 28 09:12:27 2021 +0000
@@ -2,34 +2,30 @@
 #include "Landing_Judgement.h"
 #include "direction.h"
 
-#define PIN_SDA D4
-#define PIN_SCL D5
+DigitalOut Nichrome(A6);
+                 
+int main(){
 
-DigitalOut Nichrome(A6);
-             
-int main(void){
-int land_judgement_1=0;
+    int land_judgement_1=0;
 
-//着地判定
-while(1)
-{
-    land_judgement_1 = Landing_Judgement.landing_judgement();
-    if(land_judgement_1==1)
-    {
+    //着地判定
+    while(1){
+        land_judgement_1 = Landing_Judgement.landing_judgement1();
+        if(land_judgement_1==1){
         break;
-    }  
-}
-wait(30)
+        }  
+    }
+    wait(30);
 
-//パラシュート分離
-Nichrome=1;
-wait(10);
-Nichrome=0;
+    //パラシュート分離
+    Nichrome=1;
+    wait(10);
+    Nichrome=0;
 
-//中間地点を経由してゴール地点まで自律移動
-direction.walk();
+    //中間地点を経由してゴール地点まで自律移動
+    direction.walk();
 
-return 0;
+    return 0;
 
 }