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:
- 4:6e24a1b3edca
- Parent:
- 3:a583276d9fef
- Child:
- 5:e1001bfc423a
--- a/main.cpp Thu Oct 28 07:57:02 2021 +0000
+++ b/main.cpp Thu Oct 28 08:31:00 2021 +0000
@@ -1,23 +1,14 @@
#include "mbed.h"
-#include "BMP180.h"
+#include "Landing_Judgement.h"
#include "direction.h"
-#include "Landing_Judgement.h"
+
#define PIN_SDA D4
#define PIN_SCL D5
DigitalOut Nichrome(A6);
-int parachute_separation()
-{
- Nichrome=1;
- wait(10);
- Nichrome=0;
- return 0;
- }
-
-int main(void)
-{
-int land_judgement_1=0,sep_judge=1;
+int main(void){
+int land_judgement_1=0;
//着地判定
while(1)
@@ -28,8 +19,12 @@
break;
}
}
+wait(30)
-wait(30);
+//パラシュート分離
+Nichrome=1;
+wait(10);
+Nichrome=0;
//中間地点を経由してゴール地点まで自律移動
direction.walk();