For thermal pod
Dependencies: Hepta9axis HeptaBattery HeptaCamera_GPS HeptaTemp HeptaXbee SDFileSystem mbed
Diff: main.cpp
- Revision:
- 17:904bcb46a48d
- Parent:
- 16:83536ace57fb
- Child:
- 18:191d9868effe
- Child:
- 19:58fb3ab94fbe
--- a/main.cpp Fri Sep 08 17:49:21 2017 +0000 +++ b/main.cpp Fri Sep 08 17:58:11 2017 +0000 @@ -21,7 +21,7 @@ pc.printf("Command Get %d\r\n",rcmd); if(rcmd == 'a') { while(1) { - FILE *fp = fopen("/sd/mydir/test.txt", "a"); + FILE *fp = fopen("/sd/mydir/test_thermal.txt", "a"); temper.temp_sensing_vol(&voltage); pc.printf("Volt = %f\r\n",voltage); fprintf(fp,"%f\r\n",voltage); @@ -32,7 +32,7 @@ } if(rcmd == 'b') { pc.printf("SD test Mode\r\n"); - FILE *fp = fopen("/sd/myfile.txt", "w"); + FILE *fp = fopen("/sd/mydir/myfile.txt", "w"); if(fp == NULL) { pc.printf("Could not open file for write\r\n"); } else {