Rev 2055 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1645 | - | 1 | /*********************************************************************************/ |
2 | /* Flight Control */ |
||
3 | /*********************************************************************************/ |
||
1612 | dongfang | 4 | |
5 | #ifndef _FLIGHT_H |
||
6 | #define _FLIGHT_H |
||
7 | |||
8 | #include <inttypes.h> |
||
9 | #include "analog.h" |
||
10 | #include "configuration.h" |
||
11 | |||
1645 | - | 12 | #define PITCH 0 |
13 | #define ROLL 1 |
||
2112 | - | 14 | #define YAW 2 |
1645 | - | 15 | |
2055 | - | 16 | void flight_setParameters(uint8_t _invKi, uint8_t _gyroPFactor, uint8_t _gyroIFactor, uint8_t _yawPFactor, uint8_t _yawIFactor); |
17 | void flight_setGround(void); |
||
18 | void flight_takeOff(void); |
||
19 | |||
1612 | dongfang | 20 | void flight_control(void); |
1775 | - | 21 | void transmitMotorThrottleData(void); |
2055 | - | 22 | // void flight_setNeutral(void); |
1612 | dongfang | 23 | |
24 | #endif //_FLIGHT_H |