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:
- 5:17f2b3e61112
- Parent:
- 4:d87b1e40d419
- Child:
- 6:5f55105701ac
--- a/main.cpp Tue Nov 30 14:53:07 2021 +0000 +++ b/main.cpp Tue Nov 30 15:08:01 2021 +0000 @@ -47,9 +47,13 @@ //IMU related void accel_update(); //update accelerometer related variables. we use imu_ticker to call this function + //Control related functions void thrust_on(float pw, float on_time); //input is pulse width +//Control Parameters +float on_time = 5; //on for 5 seconds part one + //-------------Main functions----------------------------------------------------------------------------------------- int main() { @@ -80,6 +84,7 @@ wait(1); while(1) { + // put your main control code here }