Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MMA8452Q MS5837 SDFileSystem SCI_SENSOR
Diff: main.cpp
- 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) {