Ian Hua / Quadcopter-mbedRTOS

RTOS-Threads/inc/Task4.h

Committer:
pHysiX
Date:
2014-05-08
Revision:
21:b642c18eccd1
Parent:
19:bd88749c8db4
Child:
22:ef8aa9728013

File content as of revision 21:b642c18eccd1:

#include "mbed.h"
#include "rtos.h"
#include "tasks.h"

#ifndef _TASK4_H_
#define _TASK4_H_

#define TASK4_PERIOD 1000/TASK4_FREQUENCY

extern int ESCpower[4];

extern bool armed;
extern bool ESC_check;
extern bool calibration_mode;

/* Update ESC */
/* 200Hz <= PWM frequency <= 400Hz */
void Task4(void const *argument);

int constrainESC(float input);

#endif