Subversion Repositories FlightCtrl

Rev

Rev 2102 | Rev 2104 | 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 MAX_CONTROL_SERVOS 4

extern int16_t controlServos[MAX_CONTROL_SERVOS];

void flight_control(void);
void flight_setNeutral(void);
void flight_updateFlightParametersToFlightMode(uint8_t flightMode);

#endif //_FLIGHT_H