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_Slave.h
- Committer:
- pHysiX
- Date:
- 2014-05-10
- Revision:
- 29:6c03b30b59ec
- Parent:
- 27:18b6580eb0b1
- Child:
- 30:d9b988f8d84f
File content as of revision 29:6c03b30b59ec:
/* File: Task2_Slave.h * Author: Trung Tin Ian HUA * Date: May 2014 * Purpose: Thread2-Slave: Gyro sample and Rate PID Control * Settings: 200Hz */ #include "mbed.h" #include "rtos.h" #include "tasks.h" #ifndef _TASK2_SLAVE_H_ #define _TASK2_SLAVE_H_ // ms timing: Refer to tasks.h to change frequency of Task2_Slave. #define TASK2_SLAVE_PERIOD 1000/TASK2_MASTER_FREQUENCY extern volatile float adjust[3]; extern volatile int gyro[3]; extern bool counterESC; /* Thread2-Slave: Gyro sample and Rate PID Control */ void Task2_Slave(void const *argument); #endif