Lab3-05_create_satcode_step4_lite_Q
Dependencies: mbed HEPTA_CDH_lite HEPTA_EPS_lite
Diff: main.cpp
- Revision:
- 3:41ff72f39e10
- Parent:
- 2:b30e3a46ae2b
diff -r b30e3a46ae2b -r 41ff72f39e10 main.cpp --- a/main.cpp Fri Aug 20 12:28:06 2021 +0000 +++ b/main.cpp Mon Aug 23 07:51:13 2021 +0000 @@ -66,25 +66,10 @@ wait_ms(1000); } }else if(rcmd == 'b') { - char str[100]; - mkdir("/sd/mydir", 0777); - FILE *fp = fopen("/sd/mydir/satdata.txt","w"); - if(fp == NULL) { - error("Could not open file for write\r\n"); - } - for(int i = 0; i < 10; i++) { - eps.vol(&batvol); - fprintf(fp,"%f\r\n",batvol); - condition = 1; - wait_ms(1000); - } - fclose(fp); - fp = fopen("/sd/mydir/satdata.txt","r"); - for(int i = 0; i < 10; i++) { - fgets(str,100,fp); - gs.puts(str); - } - fclose(fp); + + + + } initialize(); //initializing }