Subversion Repositories FlightCtrl

Rev

Rev 1960 | Rev 2048 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1645 - 1
/*********************************************************************************/
2
/* Flight Control                                                                */
3
/*********************************************************************************/
1612 dongfang 4
 
5
#ifndef _FLIGHT_H
6
#define _FLIGHT_H
7
 
8
#include <inttypes.h>
9
#include "analog.h"
10
#include "configuration.h"
11
 
1645 - 12
#define PITCH 0
13
#define ROLL 1
14
 
1775 - 15
/*
16
 * The output BLC throttles can be set in an [0..256[ interval. Some staticParams limits
17
 * (min, throttle, max throttle etc) are in a [0..256[ interval.
18
 * The calculation of motor throttle values from sensor and control information (basically
19
 * flight.c) take place in an [0..1024[ interval for better precision.
20
 * This is the conversion factor.
21
 * --> Replaced back again by CONTROL_SCALING. Even though the 2 things are not quite the
22
 * same, they are unseperable anyway.
23
 */
24
 
1612 dongfang 25
void flight_control(void);
1775 - 26
void transmitMotorThrottleData(void);
1612 dongfang 27
void flight_setNeutral(void);
28
 
29
#endif //_FLIGHT_H