Subversion Repositories FlightCtrl

Rev

Rev 1403 | Rev 1423 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1403 Rev 1420
Line 7... Line 7...
7
//#define GIER_GRAD_FAKTOR 1291L // Abhängigkeit zwischen GyroIntegral und Winkel
7
//#define GIER_GRAD_FAKTOR 1291L // Abhängigkeit zwischen GyroIntegral und Winkel
8
//#define GIER_GRAD_FAKTOR 1160L
8
//#define GIER_GRAD_FAKTOR 1160L
9
extern long GIER_GRAD_FAKTOR; // Abhängigkeit zwischen GyroIntegral und Winkel
9
extern long GIER_GRAD_FAKTOR; // Abhängigkeit zwischen GyroIntegral und Winkel
10
#define STICK_GAIN 4
10
#define STICK_GAIN 4
Line 11... Line 11...
11
 
11
 
12
#define FLAG_MOTOR_RUN  1
12
#define FCFLAG_MOTOR_RUN        0x01
13
#define FLAG_FLY        2
13
#define FCFLAG_FLY              0x02
14
#define FLAG_CALIBRATE  4
14
#define FCFLAG_CALIBRATE        0x04
15
#define FLAG_START      8
15
#define FCFLAG_START            0x08
16
#define FLAG_NOTLANDUNG 16
16
#define FCFLAG_NOTLANDUNG       0x10
-
 
17
#define FCFLAG_LOWBAT           0x20
-
 
18
#define FCFLAG_SPI_RX_ERR       0x40
-
 
19
#define FCFLAG_RESERVE1         0x80
Line 17... Line 20...
17
#define FLAG_LOWBAT             32
20
 
18
 
21
 
19
#define Poti1 Poti[0]
22
#define Poti1 Poti[0]
20
#define Poti2 Poti[1]
23
#define Poti2 Poti[1]
Line 27... Line 30...
27
 
30
 
Line 28... Line 31...
28
#define MAX_MOTORS      12
31
#define MAX_MOTORS      12
Line 29... Line 32...
29
 
32
 
30
#define CHECK_MIN_MAX(wert,min,max) {if(wert < min) wert = min; else if(wert > max) wert = max;}
33
#define CHECK_MIN_MAX(wert,min,max) {if(wert < min) wert = min; else if(wert > max) wert = max;}
31
 
34
 
32
extern volatile unsigned char MikroKopterFlags;
35
extern volatile unsigned char FCFlags;
33
extern volatile unsigned int I2CTimeout;
36
extern volatile unsigned int I2CTimeout;
34
extern unsigned char Sekunde,Minute;
37
extern unsigned char Sekunde,Minute;
35
extern unsigned int BaroExpandActive;
38
extern unsigned int BaroExpandActive;
36
extern long IntegralNick,IntegralNick2;
39
extern long IntegralNick,IntegralNick2;
37
extern long IntegralRoll,IntegralRoll2;
40
extern long IntegralRoll,IntegralRoll2;
Line 38... Line 41...
38
//extern int IntegralNick,IntegralNick2;
41
//extern int IntegralNick,IntegralNick2;
39
//extern int IntegralRoll,IntegralRoll2;
42
//extern int IntegralRoll,IntegralRoll2;
40
extern unsigned char Poti[9];
43
extern unsigned char Poti[9];
41
 
44