統合プログラム

Dependencies:   mbed Servo BMP180

Revision:
1:bb89b58cfa0e
Parent:
0:e7b7def631c2
Child:
3:a583276d9fef
--- a/Landing_Judgement.h	Thu Oct 21 01:58:35 2021 +0000
+++ b/Landing_Judgement.h	Wed Oct 27 19:11:01 2021 +0000
@@ -1,15 +1,10 @@
 #include "mbed.h"
 #include "BMP180.h"
 #include "calculate.h"
-#define PIN_SDA D4
-#define PIN_SCL D5
 
-BMP180 bmp180(PinName PIN_SDA,PinName PIN_SCL);
 class Landing_Judgement:public BMP180{
     private:
-    BMP180 bmp180(PIN_SDA,PIN_SCL);
-    
-    
+        
     int x ,y ,n1 , n2 ;
     int landing ;
     float h,dp,dt,dp0;
@@ -29,7 +24,7 @@
 };
 
 int Landing_Judgement::landing_judgement(){
-    bmp180.Initialize(27,int BMP180_OSS_ULTRA_LOW_POWER);//27は府大の海抜高度
+     bmp180.Initialize(27,int BMP180_OSS_ULTRA_LOW_POWER);//27は府大の海抜高度
     
     for(i=0;i<15;i++){
         if(bmp180.ReadData(&dt,&dp)){