Subversion Repositories FlightCtrl

Rev

Rev 2055 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2055 Rev 2112
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
 
15
 
15
void flight_setParameters(uint8_t _invKi, uint8_t _gyroPFactor, uint8_t _gyroIFactor, uint8_t _yawPFactor, uint8_t _yawIFactor);
16
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_setGround(void);
17
void flight_takeOff(void);
18
void flight_takeOff(void);
18
 
19
 
19
void flight_control(void);
20
void flight_control(void);
20
void transmitMotorThrottleData(void);
21
void transmitMotorThrottleData(void);
21
// void flight_setNeutral(void);
22
// void flight_setNeutral(void);
22
 
23
 
23
#endif //_FLIGHT_H
24
#endif //_FLIGHT_H
24
 
25