Subversion Repositories FlightCtrl

Rev

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

/*
Copyright 2008, by Michael Walter

All functions written by Michael Walter are free software and can be redistributed and/or modified under the terms of the GNU Lesser
General Public License as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public
License along with this program. If not, see <http://www.gnu.org/licenses/>.

Please note: The software is based on the framework provided by H. Buss and I. Busker in their Mikrokopter projekt. All functions that
are not written by Michael Walter are under the license by H. Buss and I. Busker (license_buss.txt) published by www.mikrokopter.de
unless it is stated otherwise.
*/


/*****************************************************************************
  Additional Defines
**************************************************************************** */

//#define USE_COMPASS
//#define INTERNAL_REFERENCE
//#define MELEXIS_GYRO
//#define USE_OSD
//#define USE_GPS
//#define X_FORMATION

extern  int MesswertNick,MesswertRoll,MesswertGier;
extern  int AdNeutralNick,AdNeutralRoll,AdNeutralGier;
extern  int NeutralAccX, NeutralAccY, NeutralAccZ;
extern  int GierMischanteil,GasMischanteil;
 
extern int AverageRoll_X, AverageRoll_Y, AverageRoll_Z;
extern int AveragerACC_X, AveragerACC_Y, AveragerACC_Z;

extern int  DiffNick,DiffRoll;
extern unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links, Count;
extern unsigned char MotorWert[5];
extern unsigned char SenderOkay;
extern int StickNick,StickRoll,StickGier;

void GetMeasurements(void);
void GetRadioValues(void);
void SendMotorData(void);
void PID_Regler(void);
void SetNeutral(void);