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:
- 35:414778105560
- Parent:
- 34:dd00bd18ead9
- Child:
- 36:93a04bd48152
diff -r dd00bd18ead9 -r 414778105560 main.cpp --- a/main.cpp Wed Dec 08 21:53:14 2021 +0000 +++ b/main.cpp Wed Dec 08 21:55:38 2021 +0000 @@ -96,8 +96,8 @@ //setup ticker to separate log and IMU data update. //so we could have all our control code in the while loop // //log at 2 Hz - //accel_ticker.attach(&accel_update,0.5); //10Hz - //log_ticker.attach(&log_data,0.5); + accel_ticker.attach(&accel_update,0.5); //10Hz + log_ticker.attach(&log_data,0.5); led2=0; led1=0; @@ -124,7 +124,7 @@ 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; } }