Subversion Repositories FlightCtrl

Rev

Rev 470 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 470 Rev 477
Line 5... Line 5...
5
#ifndef _FC_H
5
#ifndef _FC_H
6
#define _FC_H
6
#define _FC_H
Line 7... Line 7...
7
 
7
 
8
extern volatile unsigned char Timeout;
8
extern volatile unsigned char Timeout;
9
extern unsigned char Sekunde,Minute;
9
extern unsigned char Sekunde,Minute;
10
extern volatile long IntegralNick,IntegralNick2;
10
extern long IntegralNick,IntegralNick2;
-
 
11
extern long IntegralRoll,IntegralRoll2;
11
extern volatile long IntegralRoll,IntegralRoll2;
12
extern long Integral_Gier;
12
extern volatile long Mess_IntegralNick,Mess_IntegralNick2;
13
extern volatile long Mess_IntegralNick,Mess_IntegralNick2;
13
extern volatile long Mess_IntegralRoll,Mess_IntegralRoll2;
14
extern volatile long Mess_IntegralRoll,Mess_IntegralRoll2;
14
extern volatile long Mess_Integral_Hoch;
15
extern volatile long Mess_Integral_Hoch;
15
extern volatile long Integral_Gier,Mess_Integral_Gier,Mess_Integral_Gier2;
16
extern volatile long Mess_Integral_Gier,Mess_Integral_Gier2;
16
extern int KompassValue;
17
extern int KompassValue;
17
extern int KompassStartwert;
18
extern int KompassStartwert;
18
extern int KompassRichtung;
19
extern int KompassRichtung;
19
extern int HoehenWert;
20
extern int HoehenWert;
20
extern int SollHoehe;
21
extern int SollHoehe;
-
 
22
extern int MesswertNick,MesswertRoll,MesswertGier;
-
 
23
extern int Mittelwert_AccNick, Mittelwert_AccRoll,Mittelwert_AccHoch;
21
extern volatile int MesswertNick,MesswertRoll,MesswertGier;
24
 
22
extern volatile int AdNeutralNick,AdNeutralRoll,AdNeutralGier, Mittelwert_AccNick, Mittelwert_AccRoll;
25
extern volatile int AdNeutralNick,AdNeutralRoll,AdNeutralGier;
23
extern volatile int NeutralAccX, NeutralAccY,Mittelwert_AccHoch;
26
extern volatile int NeutralAccX, NeutralAccY;
Line 24... Line 27...
24
extern volatile float NeutralAccZ;
27
extern volatile float NeutralAccZ;
25
 
28
 
Line 33... Line 36...
33
void DefaultKonstanten1(void);
36
void DefaultKonstanten1(void);
34
void DefaultKonstanten2(void);
37
void DefaultKonstanten2(void);
Line 35... Line 38...
35
 
38
 
36
unsigned char h,m,s;
39
unsigned char h,m,s;
37
volatile unsigned char Timeout;
-
 
38
unsigned char CosinusNickWinkel, CosinusRollWinkel;
-
 
39
volatile long IntegralNick,IntegralNick2;
-
 
40
volatile long IntegralRoll,IntegralRoll2;
-
 
41
volatile long Integral_Gier;
-
 
42
volatile long Mess_IntegralNick,Mess_IntegralNick2;
-
 
43
volatile long Mess_IntegralRoll,Mess_IntegralRoll2;
-
 
-
 
40
volatile unsigned char Timeout;
-
 
41
 
44
volatile long Mess_Integral_Gier;
42
 
45
volatile int  DiffNick,DiffRoll;
43
int DiffNick,DiffRoll;
46
extern int  Poti1, Poti2, Poti3, Poti4;
44
extern int  Poti1, Poti2, Poti3, Poti4;
47
volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links, Count;
45
volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links;
48
unsigned char MotorWert[5];
46
unsigned char MotorWert[5];
49
volatile unsigned char SenderOkay;
47
volatile unsigned char SenderOkay;
50
int StickNick,StickRoll,StickGier;
48
int StickNick,StickRoll,StickGier;
51
char MotorenEin;
49
char MotorenEin;
Line 90... Line 88...
90
   char Name[12];
88
   char Name[12];
91
 };
89
 };
Line 92... Line 90...
92
 
90
 
93
struct acc_neutral_struct
91
struct acc_neutral_struct
94
{
92
{
95
        int X;
93
        volatile int X;
96
        int Y;
94
        volatile int Y;
97
        float Z;
95
        volatile float Z;
Line 98... Line 96...
98
};
96
};
99
 
97