Rev 2048 | Rev 2112 | 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 |
||
14 | |||
2055 | - | 15 | void flight_setParameters(uint8_t _invKi, uint8_t _gyroPFactor, uint8_t _gyroIFactor, uint8_t _yawPFactor, uint8_t _yawIFactor); |
16 | void flight_setGround(void); |
||
17 | void flight_takeOff(void); |
||
18 | |||
1612 | dongfang | 19 | void flight_control(void); |
1775 | - | 20 | void transmitMotorThrottleData(void); |
2055 | - | 21 | // void flight_setNeutral(void); |
1612 | dongfang | 22 | |
23 | #endif //_FLIGHT_H |