Rev 2103 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2103 | Rev 2104 | ||
---|---|---|---|
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 | #define PITCH 0 |
12 | #define PITCH 0 |
13 | #define ROLL 1 |
13 | #define ROLL 1 |
14 | #define YAW 2 |
14 | #define YAW 2 |
15 | #define THROTTLE 3 |
15 | #define THROTTLE 3 |
16 | 16 | ||
17 | #define MAX_CONTROL_SERVOS 4 |
17 | #define NUM_CONTROL_SERVOS 4 |
18 | 18 | ||
19 | extern int16_t controlServos[MAX_CONTROL_SERVOS]; |
19 | extern int16_t controlServos[NUM_CONTROL_SERVOS]; |
20 | 20 | ||
21 | void flight_control(void); |
21 | void flight_control(void); |
22 | void flight_setNeutral(void); |
22 | void flight_setNeutral(void); |
23 | void flight_updateFlightParametersToFlightMode(uint8_t flightMode); |
23 | void flight_updateFlightParametersToFlightMode(void); |
24 | 24 | ||
25 | #endif //_FLIGHT_H |
25 | #endif //_FLIGHT_H |
26 | 26 |