Subversion Repositories FlightCtrl

Rev

Rev 1616 | Rev 1960 | 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

extern uint8_t RequiredMotors;

// looping params
// extern long TurnOver180Nick, TurnOver180Roll;

// external control
extern int16_t ExternStickNick, ExternStickRoll, ExternStickYaw;

extern int16_t naviAccPitch, naviAccRoll, naviCntAcc;

extern volatile uint8_t MKFlags;

void flight_control(void);
void sendMotorData(void);
void flight_setNeutral(void);

#endif //_FLIGHT_H