megan gimple / Mbed 2 deprecated OCE360_Final_Project

Dependencies:   mbed MMA8452Q MS5837 SDFileSystem SCI_SENSOR

Revision:
21:1a9fe2de6e4f
Parent:
20:6fb55c833f9f
Child:
22:2a49efff8839
--- a/main.cpp	Tue Dec 07 14:40:03 2021 +0000
+++ b/main.cpp	Tue Dec 07 14:48:44 2021 +0000
@@ -97,11 +97,11 @@
         float pw= percent;
         float on_time =tim;
         thrust_on(pw, on_time); //turn thruster on for 5 seconds
-        wait(10);
+        wait(1);
     }
 
     //Part Two
-    /* timer2.start();
+    timer2.start();
     while(1) {
 
         float current_depth=p_sensor.depth();
@@ -111,11 +111,11 @@
         if (current_depth-vessel_length<2) {
             thrust_on(pw,on_time);
         }
-        if (timer2.read()>60){ //60 because counting in seconds?
+        if (timer2.read()>10){ //60 because counting in seconds?
             return 0;
         }
     }
-    */
+
 
     /*Part Three
     while(1) {