Subversion Repositories FlightCtrl

Rev

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

Rev 1760 Rev 1765
Line 8... Line 8...
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
11
#define ACC_AMPLIFY    6
11
#define ACC_AMPLIFY    6
Line -... Line 12...
-
 
12
 
12
 
13
// FC STATUS FLAGS
13
#define FCFLAG_MOTOR_RUN        0x01
14
#define FC_STATUS_MOTOR_RUN                             0x01
14
#define FCFLAG_FLY              0x02
15
#define FC_STATUS_FLY                                   0x02
15
#define FCFLAG_CALIBRATE        0x04
16
#define FC_STATUS_CALIBRATE                             0x04
16
#define FCFLAG_START            0x08
17
#define FC_STATUS_START                                 0x08
17
#define FCFLAG_NOTLANDUNG       0x10
18
#define FC_STATUS_EMERGENCY_LANDING             0x10
18
#define FCFLAG_LOWBAT           0x20
19
#define FC_STATUS_LOWBAT                                0x20
19
#define FCFLAG_SPI_RX_ERR       0x40
20
#define FC_STATUS_RES1                                  0x40
Line 20... Line -...
20
#define FCFLAG_I2CERR           0x80
-
 
21
 
-
 
22
#define DEFEKT_G_NICK           0x01
-
 
23
#define DEFEKT_G_ROLL           0x02
-
 
24
#define DEFEKT_G_GIER           0x04
-
 
25
#define DEFEKT_A_NICK           0x08
-
 
26
#define DEFEKT_A_ROLL           0x10
-
 
27
#define DEFEKT_A_Z              0x20
21
#define FC_STATUS_RES2                                  0x80
Line 28... Line -...
28
#define DEFEKT_PRESSURE         0x40
-
 
29
#define DEFEKT_CAREFREE_ERR 0x80
-
 
30
 
-
 
31
#define DEFEKT_I2C              0x01
-
 
32
#define DEFEKT_BL_MISSING       0x02
-
 
Line 33... Line 22...
33
#define DEFEKT_SPI_RX_ERR       0x04
22
 
34
#define DEFEKT_PPM_ERR          0x08
23
extern volatile unsigned char FC_StatusFlags;
35
#define DEFEKT_MIXER_ERR    0x10
24
 
36
 
25
 
37
#define Poti1 Poti[0]
26
#define Poti1 Poti[0]
38
#define Poti2 Poti[1]
27
#define Poti2 Poti[1]
39
#define Poti3 Poti[2]
28
#define Poti3 Poti[2]
40
#define Poti4 Poti[3]
29
#define Poti4 Poti[3]
Line 41... Line -...
41
#define Poti5 Poti[4]
-
 
42
#define Poti6 Poti[5]
30
#define Poti5 Poti[4]
43
#define Poti7 Poti[6]
31
#define Poti6 Poti[5]
44
#define Poti8 Poti[7]
32
#define Poti7 Poti[6]
45
 
33
#define Poti8 Poti[7]
46
extern volatile unsigned char FCFlags;
34