2017.11伊豆大島共同打ち上げ実験のデータ取得&保存&無線送信用プログラム
Dependencies: BMP180 MPU6050 SDFileSystem mbed
Fork of 2017_11_1768 by
Diff: main.cpp
- Revision:
- 7:5f8080485160
- Parent:
- 6:aae92602ef84
- Child:
- 8:8b7e9aa3a2fc
diff -r aae92602ef84 -r 5f8080485160 main.cpp --- 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++;