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.
RTOS-Threads/inc/Task4.h@14:267368c83b6a, 2014-05-02 (annotated)
- Committer:
- pHysiX
- Date:
- Fri May 02 17:19:00 2014 +0000
- Revision:
- 14:267368c83b6a
- Parent:
- 2:ab967d7b4346
- Child:
- 19:bd88749c8db4
Reduced ESC pulse frequency to 200Hz from 400Hz since control is run up to 200Hz
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pHysiX | 1:43f8ac7ca6d7 | 1 | #include "mbed.h" |
pHysiX | 1:43f8ac7ca6d7 | 2 | #include "rtos.h" |
pHysiX | 1:43f8ac7ca6d7 | 3 | #include "tasks.h" |
pHysiX | 1:43f8ac7ca6d7 | 4 | |
pHysiX | 1:43f8ac7ca6d7 | 5 | #ifndef _TASK4_H_ |
pHysiX | 1:43f8ac7ca6d7 | 6 | #define _TASK4_H_ |
pHysiX | 1:43f8ac7ca6d7 | 7 | |
pHysiX | 1:43f8ac7ca6d7 | 8 | #define TASK4_PERIOD 1000/TASK4_FREQUENCY |
pHysiX | 1:43f8ac7ca6d7 | 9 | |
pHysiX | 2:ab967d7b4346 | 10 | extern int ESCpower[4]; |
pHysiX | 2:ab967d7b4346 | 11 | |
pHysiX | 14:267368c83b6a | 12 | extern bool armed; |
pHysiX | 14:267368c83b6a | 13 | |
pHysiX | 2:ab967d7b4346 | 14 | /* Update ESC */ |
pHysiX | 2:ab967d7b4346 | 15 | /* 200Hz <= PWM frequency <= 400Hz */ |
pHysiX | 1:43f8ac7ca6d7 | 16 | void Task4(void const *argument); |
pHysiX | 1:43f8ac7ca6d7 | 17 | |
pHysiX | 1:43f8ac7ca6d7 | 18 | #endif |