Subversion Repositories FlightCtrl

Rev

Rev 1910 | Rev 2103 | 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 MAX_SERVOS 8

extern int16_t servos[MAX_SERVOS];

typedef enum {
  FLIGHT_MODE_MANUAL,
  FLIGHT_MODE_RATE,
  FLIGHT_MODE_ANGLES
} FlightMode_t;

void flight_control(void);
void transmitMotorThrottleData(void);
void flight_setNeutral(void);

#endif //_FLIGHT_H