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.
Diff: RTOS-Threads/src/Task4.cpp
- Revision:
- 31:3dde2201e54d
- Parent:
- 30:d9b988f8d84f
- Child:
- 32:7a9be7761c46
diff -r d9b988f8d84f -r 3dde2201e54d RTOS-Threads/src/Task4.cpp --- a/RTOS-Threads/src/Task4.cpp Mon May 12 04:43:38 2014 +0000 +++ b/RTOS-Threads/src/Task4.cpp Mon May 12 05:12:19 2014 +0000 @@ -17,15 +17,10 @@ bool ESC_check = false; bool calibration_mode = false; -#ifdef TIME_TASK4 -Timer _t4; -#endif +//Timer void Task4(void const *argurment) { -#ifdef TIME_TASK4 - _t4.reset(); - _t4.start(); -#endif +//Timer if (armed) { if (calibration_mode) { for (int i = 0; i < 4; i++) @@ -70,13 +65,10 @@ } } - if (ESC_check) - BT.printf("%4d %4d %4d %4d\n", ESCpower[0], ESCpower[1], ESCpower[2], ESCpower[3]); + //if (ESC_check) + // BT.printf("%4d %4d %4d %4d\n", ESCpower[0], ESCpower[1], ESCpower[2], ESCpower[3]); -#ifdef TIME_TASK4 - _t4.stop(); - BT.printf("%d\n", _t4.read_us()); -#endif +//Timer } int constrainESC(float input)