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 Servo BMP180
Diff: main.cpp
- 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;
}