![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
02/07/15
Dependencies: mbed
Diff: Data.cpp
- Revision:
- 45:eb06f1d42938
- Parent:
- 44:3b45ec49bc44
- Child:
- 46:70031ad8f2b9
--- a/Data.cpp Wed Jul 08 15:42:30 2015 +0000 +++ b/Data.cpp Thu Jul 09 13:34:13 2015 +0000 @@ -15,4 +15,11 @@ FILE *fp = fopen("/local/Datalog.xls", "a"); // Open "Datalog fprintf(fp, " %d \t %d \n",sensor_number, speed); //fills the tables with the results fclose(fp); +} + +void averageData() //adds average data fom b2 to b6 +{ + FILE *fp2 = fopen("/local/Datalog.xls", "a"); + fprintf(fp2, " %Average \t=SUM(B2:B6) / 5 \n"); + fclose(fp2); } \ No newline at end of file