(多分)全部+フライトピン+新しい加速度

Dependencies:   mbed

Revision:
6:574d9a6253c7
Parent:
4:8b52fd631b32
Child:
8:d41f5d7d2aa5
--- a/main.cpp	Sat Oct 20 03:10:04 2018 +0000
+++ b/main.cpp	Mon Oct 22 02:30:19 2018 +0000
@@ -2,6 +2,10 @@
 #include "gps.h"
 #include "ultrasonic.h"
 #include "motordriver.h"
+#include "HMC5883L.h"
+
+Serial pc(USBTX, USBRX);            //地磁気センサー
+HMC5883L compass(p28, p27);
 
 DigitalOut FET(p21);                //FET
 
@@ -63,6 +67,8 @@
     }    
     fprintf(fp,"GPS finish\r\n");
     fclose(fp);                      //GPSの測定終了  
+    
+    compass.init();                  //地磁気センサー動作
   
         mu.startUpdates();//start mesuring the distance(超音波センサー)
         int distance;