cansat_B 2019 / Mbed 2 deprecated CanSatB2019_main_1214_essence_2

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
YUPPY
Date:
Sat Dec 14 13:27:51 2019 +0000
Parent:
14:228a35fcb323
Commit message:
s

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Dec 14 13:23:31 2019 +0000
+++ b/main.cpp	Sat Dec 14 13:27:51 2019 +0000
@@ -41,26 +41,30 @@
     Ultra=0;//超音波off
     SW=1;
     flight==1;//flight pin ついてる
-    FET=1;//FET off   
-    printf("you worry about me don't you?\r\n");
+    FET=0;//FET off  
+    myled=1; 
+    printf("CanSat-B_Start!\r\n");
 
      //FET
      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;