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-Setup/inc/setup.h@3:605fbcb54e75, 2014-04-29 (annotated)
- Committer:
- pHysiX
- Date:
- Tue Apr 29 14:53:32 2014 +0000
- Revision:
- 3:605fbcb54e75
- Parent:
- 2:ab967d7b4346
- Child:
- 4:01921a136f58
Fully implemented system. Need to test stability of RTOS, and to make sure that values are correct. ; Rate Mode only.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| pHysiX | 1:43f8ac7ca6d7 | 1 | #include "mbed.h" |
| pHysiX | 1:43f8ac7ca6d7 | 2 | #include "MPU6050_6Axis_MotionApps20.h" |
| pHysiX | 3:605fbcb54e75 | 3 | #include "PID.h" |
| pHysiX | 1:43f8ac7ca6d7 | 4 | |
| pHysiX | 1:43f8ac7ca6d7 | 5 | #ifndef _SETUP_H_ |
| pHysiX | 1:43f8ac7ca6d7 | 6 | #define _SETUP_H_ |
| pHysiX | 1:43f8ac7ca6d7 | 7 | |
| pHysiX | 2:ab967d7b4346 | 8 | #define ESC_FREQUENCY 400 |
| pHysiX | 2:ab967d7b4346 | 9 | |
| pHysiX | 2:ab967d7b4346 | 10 | #define ESC_PERIOD_US 1000000/ESC_FREQUENCY |
| pHysiX | 2:ab967d7b4346 | 11 | |
| pHysiX | 1:43f8ac7ca6d7 | 12 | extern Serial BT; |
| pHysiX | 1:43f8ac7ca6d7 | 13 | extern DigitalOut BT_CMD; |
| pHysiX | 1:43f8ac7ca6d7 | 14 | |
| pHysiX | 1:43f8ac7ca6d7 | 15 | extern MPU6050 imu; |
| pHysiX | 1:43f8ac7ca6d7 | 16 | extern uint16_t packetSize; |
| pHysiX | 1:43f8ac7ca6d7 | 17 | |
| pHysiX | 3:605fbcb54e75 | 18 | //extern DigitalOut LED[]; |
| pHysiX | 3:605fbcb54e75 | 19 | |
| pHysiX | 3:605fbcb54e75 | 20 | extern PID yawPIDrate; |
| pHysiX | 3:605fbcb54e75 | 21 | extern PID pitchPIDrate; |
| pHysiX | 3:605fbcb54e75 | 22 | extern PID rollPIDrate; |
| pHysiX | 1:43f8ac7ca6d7 | 23 | |
| pHysiX | 3:605fbcb54e75 | 24 | extern PwmOut ESC[4]; |
| pHysiX | 2:ab967d7b4346 | 25 | |
| pHysiX | 3:605fbcb54e75 | 26 | bool setupALLdevices(void); |
| pHysiX | 2:ab967d7b4346 | 27 | bool setup_ESC(void); |
| pHysiX | 1:43f8ac7ca6d7 | 28 | bool setup_bt(void); |
| pHysiX | 3:605fbcb54e75 | 29 | bool setup_PID(void); |
| pHysiX | 1:43f8ac7ca6d7 | 30 | bool setup_mpu6050(void); |
| pHysiX | 1:43f8ac7ca6d7 | 31 | |
| pHysiX | 1:43f8ac7ca6d7 | 32 | #endif |