201803_oshima Team.F.C.

Dependencies:   BMP180 MPU6050 SDFileSystem mbed

Fork of 201803_oshima_jodan by Haruki Sashida

Revision:
8:eb1ebae5f051
Parent:
7:852922a4058a
Child:
9:b10aaf72d100
--- a/main.cpp	Tue Mar 06 07:18:25 2018 +0000
+++ b/main.cpp	Tue Mar 06 13:04:18 2018 +0000
@@ -38,7 +38,7 @@
 int Cnt_buff = 0;
 int Cnt_para = 0;
 int Cnt_open = 0;
-int i, j, t, t1;
+int i, j, t;
 //高度取得
 float Alt_buff[256],Alt_buff2[10],Alt_gnd,Alt_now, Max_Alt;
 float p0 = 1013.25;             //海面気圧
@@ -46,7 +46,7 @@
 //位置情報取得
 char gps_data[256];
 int cnt_gps =0;
-//加速度取得
+//加速度,ジャイロ取得
 float a_abs;
 float a[3];
 float d[3];
@@ -109,7 +109,8 @@
     fp = fopen("/sd/mydir/sdtest.txt", "a");
     if(fp == NULL)twe.printf("ERROR\r\n");
     timer1.start();
-    kaihou.attach(_open,1/RATE); 
+    kaihou.attach(_open,1/RATE);
+    kaihou.attach(_open,0.02);
     
     
     while(1){