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@4:01921a136f58, 2014-04-30 (annotated)
- Committer:
- pHysiX
- Date:
- Wed Apr 30 06:37:42 2014 +0000
- Revision:
- 4:01921a136f58
- Parent:
- 3:605fbcb54e75
- Child:
- 12:953d25061417
Included RX Module read
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 | 4:01921a136f58 | 8 | #define KP_YAW_RATE 1.0 |
| pHysiX | 4:01921a136f58 | 9 | #define KP_PITCH_RATE 1.0 |
| pHysiX | 4:01921a136f58 | 10 | #define KP_ROLL_RATE 1.0 |
| pHysiX | 4:01921a136f58 | 11 | |
| pHysiX | 2:ab967d7b4346 | 12 | #define ESC_FREQUENCY 400 |
| pHysiX | 2:ab967d7b4346 | 13 | #define ESC_PERIOD_US 1000000/ESC_FREQUENCY |
| pHysiX | 2:ab967d7b4346 | 14 | |
| pHysiX | 1:43f8ac7ca6d7 | 15 | extern Serial BT; |
| pHysiX | 1:43f8ac7ca6d7 | 16 | extern DigitalOut BT_CMD; |
| pHysiX | 1:43f8ac7ca6d7 | 17 | |
| pHysiX | 1:43f8ac7ca6d7 | 18 | extern MPU6050 imu; |
| pHysiX | 1:43f8ac7ca6d7 | 19 | extern uint16_t packetSize; |
| pHysiX | 1:43f8ac7ca6d7 | 20 | |
| pHysiX | 3:605fbcb54e75 | 21 | //extern DigitalOut LED[]; |
| pHysiX | 3:605fbcb54e75 | 22 | |
| pHysiX | 3:605fbcb54e75 | 23 | extern PID yawPIDrate; |
| pHysiX | 3:605fbcb54e75 | 24 | extern PID pitchPIDrate; |
| pHysiX | 3:605fbcb54e75 | 25 | extern PID rollPIDrate; |
| pHysiX | 1:43f8ac7ca6d7 | 26 | |
| pHysiX | 3:605fbcb54e75 | 27 | extern PwmOut ESC[4]; |
| pHysiX | 2:ab967d7b4346 | 28 | |
| pHysiX | 3:605fbcb54e75 | 29 | bool setupALLdevices(void); |
| pHysiX | 2:ab967d7b4346 | 30 | bool setup_ESC(void); |
| pHysiX | 1:43f8ac7ca6d7 | 31 | bool setup_bt(void); |
| pHysiX | 3:605fbcb54e75 | 32 | bool setup_PID(void); |
| pHysiX | 1:43f8ac7ca6d7 | 33 | bool setup_mpu6050(void); |
| pHysiX | 1:43f8ac7ca6d7 | 34 | |
| pHysiX | 1:43f8ac7ca6d7 | 35 | #endif |