Ian Hua / Quadcopter-mbedRTOS

RTOS-Threads/inc/Task2_Master.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_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_Master.
#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