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:
- 14:267368c83b6a
- Parent:
- 10:ef5fe86f67fe
- Child:
- 19:bd88749c8db4
--- a/RTOS-Threads/src/Task4.cpp Fri May 02 17:14:27 2014 +0000 +++ b/RTOS-Threads/src/Task4.cpp Fri May 02 17:19:00 2014 +0000 @@ -7,10 +7,11 @@ int ESCpower[4] = {0, 0, 0, 0}; int stallESC = 0; +bool armed = false; void Task4(void const *argurment) { - if (RCCommand != 0) { + if (armed) { if (counterESC) { /* [YAW PITCH ROLL THROTTLE AUX] */ ESCpower[0] = (RCCommand[3]*9/10) + (pitch_adjust / 2) - (roll_adjust / 2) + (yaw_adjust / 2);