Ian Hua / Quadcopter-mbedRTOS
Committer:
pHysiX
Date:
Fri May 02 17:01:56 2014 +0000
Revision:
12:953d25061417
Parent:
5:4879ef0e6d41
Child:
17:18c3bd016e49
Added in all sensors. Need to add in EEPROM to complete control of Tilty. Finished all telemetry output and appropriate data rates.

Who changed what in which revision?

UserRevisionLine numberNew 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 _TASK3_H_
pHysiX 1:43f8ac7ca6d7 6 #define _TASKS3_H_
pHysiX 1:43f8ac7ca6d7 7
pHysiX 1:43f8ac7ca6d7 8 #define TASK3_PERIOD 1000/TASK3_FREQUENCY
pHysiX 1:43f8ac7ca6d7 9
pHysiX 12:953d25061417 10 /* Scale:
pHysiX 12:953d25061417 11 Vin = ADC * Vread * scale
pHysiX 12:953d25061417 12 Vin = (2^n-1)/3.3 * k*Vin * scale * ADJUST
pHysiX 12:953d25061417 13 */
pHysiX 12:953d25061417 14 //#define VOLTAGE_DIVIDER 0.05061465
pHysiX 12:953d25061417 15 #define VOLTAGE_SCALE 49.60248447
pHysiX 12:953d25061417 16
pHysiX 1:43f8ac7ca6d7 17 extern float ypr_offset[3];
pHysiX 1:43f8ac7ca6d7 18
pHysiX 3:605fbcb54e75 19 extern bool box_demo;
pHysiX 5:4879ef0e6d41 20 extern bool rc_out;
pHysiX 5:4879ef0e6d41 21 extern bool gyro_out;
pHysiX 3:605fbcb54e75 22
pHysiX 3:605fbcb54e75 23 /* [YAW PITCH ROLL THROTTLE AUX] */
pHysiX 3:605fbcb54e75 24 extern int RCCommand[5];
pHysiX 3:605fbcb54e75 25
pHysiX 12:953d25061417 26 /* RC & BT Command & Telemetry (50Hz) */
pHysiX 1:43f8ac7ca6d7 27 void Task3(void const *argument);
pHysiX 1:43f8ac7ca6d7 28
pHysiX 1:43f8ac7ca6d7 29 #endif