2017.11伊豆大島共同打ち上げ実験のデータ取得&保存用プログラム

Dependencies:   BMP180 MPU6050 SDFileSystem mbed

Fork of SDFileSystem_HelloWorld by mbed official

Files at this revision

API Documentation at this revision

Comitter:
oichan
Date:
Sun Nov 05 09:41:40 2017 +0000
Parent:
6:aae92602ef84
Child:
8:8b7e9aa3a2fc
Commit message:
produced by oikawa

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Oct 29 13:40:18 2017 +0000
+++ b/main.cpp	Sun Nov 05 09:41:40 2017 +0000
@@ -46,11 +46,11 @@
 
 
 int main() {
-//    pc.printf("Hello World!\n");
     oshirase2.output();
     oshirase1 = 0;
     oshirase2 = 0;
     twe.baud(115200); 
+    twe.printf("Hello World!\n");
     mpu.setAcceleroRange(0);
     bmp.Initialize(64,BMP180_OSS_ULTRA_LOW_POWER);  
     mkdir("/sd/mydir", 0777);
@@ -178,7 +178,7 @@
 
     /*  データ保存   */
     if(Log_cnt==0) {
-        fp = fopen("/sd/mydir/sdtest.txt", "a");
+        fp = fopen("/sd/mydir/log.txt", "a");
     }
     fprintf(fp, "%d,%f, %f, %f, %f, %f, %f, %f \r\n",Phase, Time, Temperature, Pressure, Altitude, a[0],a[1],a[2]);
     Log_cnt++;