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/Task2.h@20:b193a50a2ba3, 2014-05-03 (annotated)
- Committer:
- pHysiX
- Date:
- Sat May 03 02:55:24 2014 +0000
- Revision:
- 20:b193a50a2ba3
- Parent:
- 12:953d25061417
- Child:
- 21:b642c18eccd1
Added in ability to control PID; fixed PID initialisation bug
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 _TASK2_H_ |
pHysiX | 1:43f8ac7ca6d7 | 6 | #define _TASK2_H_ |
pHysiX | 1:43f8ac7ca6d7 | 7 | |
pHysiX | 20:b193a50a2ba3 | 8 | // ms |
pHysiX | 1:43f8ac7ca6d7 | 9 | #define TASK2_PERIOD 1000/TASK2_FREQUENCY |
pHysiX | 1:43f8ac7ca6d7 | 10 | |
pHysiX | 3:605fbcb54e75 | 11 | extern int yaw_adjust; |
pHysiX | 3:605fbcb54e75 | 12 | extern int pitch_adjust; |
pHysiX | 3:605fbcb54e75 | 13 | extern int roll_adjust; |
pHysiX | 3:605fbcb54e75 | 14 | |
pHysiX | 10:ef5fe86f67fe | 15 | extern bool counterESC; |
pHysiX | 10:ef5fe86f67fe | 16 | |
pHysiX | 12:953d25061417 | 17 | /* Gyro & PID */ |
pHysiX | 1:43f8ac7ca6d7 | 18 | void Task2(void const *argument); |
pHysiX | 1:43f8ac7ca6d7 | 19 | |
pHysiX | 1:43f8ac7ca6d7 | 20 | #endif |