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:
- 4:6e24a1b3edca
- Parent:
- 3:a583276d9fef
- Child:
- 5:e1001bfc423a
File content as of revision 4:6e24a1b3edca:
#include "mbed.h"
#include "Landing_Judgement.h"
#include "direction.h"
#define PIN_SDA D4
#define PIN_SCL D5
DigitalOut Nichrome(A6);
int main(void){
int land_judgement_1=0;
//着地判定
while(1)
{
land_judgement_1 = Landing_Judgement.landing_judgement();
if(land_judgement_1==1)
{
break;
}
}
wait(30)
//パラシュート分離
Nichrome=1;
wait(10);
Nichrome=0;
//中間地点を経由してゴール地点まで自律移動
direction.walk();
return 0;
}