The official code that runs on the FRDM board for the chlorine sensor.

Dependencies:   MBed_Adafruit-GPS-Library SDFileSystem mbed GSM_Library

Fork of DCS by Brandon Crofts

Revision:
1:8614e190908b
Parent:
0:d7b2716c5a4f
Child:
2:5c0513ab856e
Child:
8:6b4a6bcd7694
--- a/Sensor.cpp	Fri Mar 06 22:13:58 2015 +0000
+++ b/Sensor.cpp	Fri Mar 06 22:36:44 2015 +0000
@@ -138,7 +138,7 @@
             }
         }
         
-        /*
+        
         
         if(sampleIndex+2 > SAMPLE_LENGTH){ //0.50 seconds
             
@@ -171,7 +171,7 @@
             else           pc.printf("No GPS fix\r\n");
             pc.printf("--------------------------------\r\n");
             
-            //fp = fopen("/sd/data.txt", "w");
+            fp = fopen("/sd/data.txt", "w");
             if (fp != NULL){
                 
                 fprintf(fp, "Long = %f\r\n", filteredLong);
@@ -182,7 +182,7 @@
                 if (myGPS.fix) fprintf(fp, "Location: %5.2f%c, %5.2f%c\r\n", myGPS.latitude, myGPS.lat, myGPS.longitude, myGPS.lon);
                 else           fprintf(fp, "No GPS fix\r\n");
                 
-                //fclose(fp);    
+                fclose(fp);    
             }
             
             t.reset();
@@ -190,6 +190,8 @@
         
         
         
+        
+        
         /*
         if (sampleIndex+2 > SAMPLE_LENGTH) { // 0.25 seconds