Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 13:8cc3568726a6
- Parent:
- 12:eb4befc8d2c4
--- 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