Rev 1616 | Rev 1960 | 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 | |||
1612 | dongfang | 15 | extern uint8_t RequiredMotors; |
16 | |||
17 | // looping params |
||
1616 | dongfang | 18 | // extern long TurnOver180Nick, TurnOver180Roll; |
1612 | dongfang | 19 | |
20 | // external control |
||
21 | extern int16_t ExternStickNick, ExternStickRoll, ExternStickYaw; |
||
22 | |||
23 | extern int16_t naviAccPitch, naviAccRoll, naviCntAcc; |
||
24 | |||
25 | extern volatile uint8_t MKFlags; |
||
26 | |||
27 | void flight_control(void); |
||
28 | void sendMotorData(void); |
||
29 | void flight_setNeutral(void); |
||
30 | |||
31 | #endif //_FLIGHT_H |