CansatB_2021 / Mbed 2 deprecated cansat_integrated

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;

}