cansat_B 2019 / Mbed 2 deprecated CanSatB2019_main_1214-2

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
YUPPY
Date:
Sat Dec 14 13:07:27 2019 +0000
Parent:
12:eb4befc8d2c4
Commit message:
n;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Dec 14 10:01:17 2019 +0000
+++ b/main.cpp	Sat Dec 14 13:07:27 2019 +0000
@@ -40,33 +40,37 @@
     Ultra=0;//超音波off
     SW=1;
     flight==1;//flight pin ついてる
-    FET=1;//FET off   
+    FET=0;//FET off  
+    myled=1; 
     printf("CanSat-B_Start!\r\n");
 
      //FET
-     /*while(1){
+     while(1){
      if(flight==1) {
+        myled=1;
         wait(10);
         printf("mada\r\n");
         }
      else{
         if(flight==1) {
+            myled=1;
         wait(10);
         printf("madamada\r\n");
         }
         else{
+          myled=0;
           printf("yattar\r\n");
+          FET=1;
+          wait(10);
           FET=0;
           wait(10);
-          FET=1;
-          wait(10);
           printf("FET End!\r\n");
           SW=0;
         
     break;
             }
     }   
-    }*/
+    }
     
     
       //以下GPS