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
main.cpp
- Committer:
- tsubasa_nakajima
- Date:
- 2021-10-28
- Revision:
- 3:a583276d9fef
- Parent:
- 2:d2cb6b50a8c4
- Child:
- 4:6e24a1b3edca
File content as of revision 3:a583276d9fef:
#include "mbed.h"
#include "BMP180.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;
//着地判定
while(1)
{
land_judgement_1 = Landing_Judgement.landing_judgement();
if(land_judgement_1==1)
{
break;
}
}
wait(30);
//中間地点を経由してゴール地点まで自律移動
direction.walk();
return 0;
}