Rev 2048 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2048 | Rev 2055 | ||
---|---|---|---|
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 | ||
- | 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); |
|
14 | 18 | ||
15 | void flight_control(void); |
19 | void flight_control(void); |
16 | void transmitMotorThrottleData(void); |
20 | void transmitMotorThrottleData(void); |
17 | void flight_setNeutral(void); |
21 | // void flight_setNeutral(void); |
18 | 22 | ||
19 | #endif //_FLIGHT_H |
23 | #endif //_FLIGHT_H |
20 | 24 |