Subversion Repositories FlightCtrl

Rev

Rev 2104 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1910 - 1
/*********************************************************************************/
2
/* Flight Control                                                                */
3
/*********************************************************************************/
4
 
5
#ifndef _FLIGHT_H
6
#define _FLIGHT_H
7
 
8
#include <inttypes.h>
9
#include "analog.h"
10
#include "configuration.h"
11
 
12
#define PITCH 0
13
#define ROLL 1
2099 - 14
#define YAW 2
2103 - 15
#define THROTTLE 3
1910 - 16
 
2142 - 17
#define LOG_STICK_SCALE 8
18
#define LOG_P_SCALE 6
19
#define LOG_I_SCALE 10
20
#define LOG_D_SCALE 6
21
 
2104 - 22
#define NUM_CONTROL_SERVOS 4
1910 - 23
 
2104 - 24
extern int16_t controlServos[NUM_CONTROL_SERVOS];
1910 - 25
 
26
void flight_control(void);
27
void flight_setNeutral(void);
2104 - 28
void flight_updateFlightParametersToFlightMode(void);
1910 - 29
 
30
#endif //_FLIGHT_H