Rev 1612 | Rev 1645 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1612 | Rev 1616 | ||
---|---|---|---|
1 | /*####################################################################################### |
1 | /*####################################################################################### |
2 | Flight Control |
2 | Flight Control |
3 | #######################################################################################*/ |
3 | #######################################################################################*/ |
4 | 4 | ||
5 | #ifndef _FLIGHT_H |
5 | #ifndef _FLIGHT_H |
6 | #define _FLIGHT_H |
6 | #define _FLIGHT_H |
7 | 7 | ||
8 | #include <inttypes.h> |
8 | #include <inttypes.h> |
9 | #include "analog.h" |
9 | #include "analog.h" |
10 | #include "configuration.h" |
10 | #include "configuration.h" |
11 | 11 | ||
12 | extern uint8_t RequiredMotors; |
12 | extern uint8_t RequiredMotors; |
13 | 13 | ||
14 | // looping params |
14 | // looping params |
15 | extern long TurnOver180Nick, TurnOver180Roll; |
15 | // extern long TurnOver180Nick, TurnOver180Roll; |
16 | 16 | ||
17 | // external control |
17 | // external control |
18 | extern int16_t ExternStickNick, ExternStickRoll, ExternStickYaw; |
18 | extern int16_t ExternStickNick, ExternStickRoll, ExternStickYaw; |
19 | 19 | ||
20 | extern int16_t naviAccPitch, naviAccRoll, naviCntAcc; |
20 | extern int16_t naviAccPitch, naviAccRoll, naviCntAcc; |
21 | 21 | ||
22 | extern volatile uint8_t MKFlags; |
22 | extern volatile uint8_t MKFlags; |
23 | 23 | ||
24 | void flight_control(void); |
24 | void flight_control(void); |
25 | void sendMotorData(void); |
25 | void sendMotorData(void); |
26 | void flight_setNeutral(void); |
26 | void flight_setNeutral(void); |
27 | 27 | ||
28 | #endif //_FLIGHT_H |
28 | #endif //_FLIGHT_H |
29 | 29 |