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/src/Task4.cpp@2:ab967d7b4346, 2014-04-29 (annotated)
- Committer:
- pHysiX
- Date:
- Tue Apr 29 11:43:32 2014 +0000
- Revision:
- 2:ab967d7b4346
- Parent:
- 1:43f8ac7ca6d7
- Child:
- 3:605fbcb54e75
Added in simple ESC initialise
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pHysiX | 2:ab967d7b4346 | 1 | /* Update ESC */ |
pHysiX | 2:ab967d7b4346 | 2 | /* 200Hz <= PWM frequency <= 400Hz */ |
pHysiX | 2:ab967d7b4346 | 3 | |
pHysiX | 1:43f8ac7ca6d7 | 4 | #include "tasks.h" |
pHysiX | 1:43f8ac7ca6d7 | 5 | #include "setup.h" |
pHysiX | 1:43f8ac7ca6d7 | 6 | |
pHysiX | 2:ab967d7b4346 | 7 | int ESCpower[4] = {0, 0, 0, 0}; |
pHysiX | 2:ab967d7b4346 | 8 | |
pHysiX | 1:43f8ac7ca6d7 | 9 | void Task4(void const *argurment) |
pHysiX | 1:43f8ac7ca6d7 | 10 | { |
pHysiX | 2:ab967d7b4346 | 11 | ESC1.pulsewidth_us(ESCpower[0]); |
pHysiX | 2:ab967d7b4346 | 12 | ESC2.pulsewidth_us(ESCpower[1]); |
pHysiX | 2:ab967d7b4346 | 13 | ESC3.pulsewidth_us(ESCpower[2]); |
pHysiX | 2:ab967d7b4346 | 14 | ESC3.pulsewidth_us(ESCpower[3]); |
pHysiX | 2:ab967d7b4346 | 15 | |
pHysiX | 2:ab967d7b4346 | 16 | //LED[4] = !LED[4]; |
pHysiX | 1:43f8ac7ca6d7 | 17 | } |