Rev 1616 | Rev 1960 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1616 | Rev 1645 | ||
---|---|---|---|
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 | ||
- | 12 | #define PITCH 0 |
|
- | 13 | #define ROLL 1 |
|
11 | 14 | ||
12 | extern uint8_t RequiredMotors; |
15 | extern uint8_t RequiredMotors; |
13 | 16 | ||
14 | // looping params |
17 | // looping params |
15 | // extern long TurnOver180Nick, TurnOver180Roll; |
18 | // extern long TurnOver180Nick, TurnOver180Roll; |
16 | 19 | ||
17 | // external control |
20 | // external control |
18 | extern int16_t ExternStickNick, ExternStickRoll, ExternStickYaw; |
21 | extern int16_t ExternStickNick, ExternStickRoll, ExternStickYaw; |
19 | 22 | ||
20 | extern int16_t naviAccPitch, naviAccRoll, naviCntAcc; |
23 | extern int16_t naviAccPitch, naviAccRoll, naviCntAcc; |
21 | 24 | ||
22 | extern volatile uint8_t MKFlags; |
25 | extern volatile uint8_t MKFlags; |
23 | 26 | ||
24 | void flight_control(void); |
27 | void flight_control(void); |
25 | void sendMotorData(void); |
28 | void sendMotorData(void); |
26 | void flight_setNeutral(void); |
29 | void flight_setNeutral(void); |
27 | 30 | ||
28 | #endif //_FLIGHT_H |
31 | #endif //_FLIGHT_H |
29 | 32 |