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/inc/Task2_Master.h
- Revision:
- 27:18b6580eb0b1
- Parent:
- 26:4a3323ee36d5
- Child:
- 29:6c03b30b59ec
--- a/RTOS-Threads/inc/Task2_Master.h Sat May 10 01:04:17 2014 +0000 +++ b/RTOS-Threads/inc/Task2_Master.h Sat May 10 01:39:02 2014 +0000 @@ -0,0 +1,24 @@ +/* File: Task2_Master.h + * Author: Trung Tin Ian HUA + * Date: May 2014 + * Purpose: Thread2-Master: Attitude PID Control + * Settings: 100Hz + */ + +#include "mbed.h" +#include "rtos.h" +#include "tasks.h" + +#ifndef _TASK2_MASTER_H_ +#define _TASK2_MASTER_H_ + +// ms timing: Refer to tasks.h to change frequency of Task2. +#define TASK2_MASTER_PERIOD 1000/TASK2_MASTER_FREQUENCY + +extern volatile float adjust_attitude[3]; +//extern bool counterTask2Master; + +/* Thread2-Master: Attitude PID Control */ +void Task2_Master(void const *argument); + +#endif