Subversion Repositories FlightCtrl

Rev

Rev 2108 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*********************************************************************************/
/* Flight Control                                                                */
/*********************************************************************************/

#ifndef _FLIGHT_H
#define _FLIGHT_H

#include <inttypes.h>
#include "analog.h"
#include "configuration.h"

#define PITCH 0
#define ROLL 1
#define YAW 2
#define THROTTLE 3

#define LOG_STICK_SCALE 8
#define LOG_P_SCALE 9
#define LOG_I_SCALE 12
#define LOG_D_SCALE 8

#define NUM_CONTROL_SERVOS 4

extern int16_t controlServos[NUM_CONTROL_SERVOS];

void flight_control(void);
void flight_setNeutral(void);
void flight_updateFlightParametersToFlightMode(void);

#endif //_FLIGHT_H