Subversion Repositories NaviCtrl

Rev

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

Rev 291 Rev 294
Line 5... Line 5...
5
//#define DEBUG 0
5
//#define DEBUG 0
6
//-----------------------
6
//-----------------------
Line 7... Line 7...
7
 
7
 
8
#define VERSION_MAJOR   0
8
#define VERSION_MAJOR   0
9
#define VERSION_MINOR   23
9
#define VERSION_MINOR   23
10
#define VERSION_PATCH   11
10
#define VERSION_PATCH   12
11
// 0 = A
11
// 0 = A
12
// 1 = B
12
// 1 = B
13
// 2 = C
13
// 2 = C
14
// 3 = D
14
// 3 = D
Line 18... Line 18...
18
// 7 = H
18
// 7 = H
19
// 8 = I
19
// 8 = I
20
// 9 = J
20
// 9 = J
21
// 10 = k
21
// 10 = k
22
// 11 = L
22
// 11 = L
-
 
23
// 12 = M
Line 23... Line 24...
23
 
24
 
24
#define VERSION_SERIAL_MAJOR    11
25
#define VERSION_SERIAL_MAJOR    11
Line 25... Line 26...
25
#define VERSION_SERIAL_MINOR    0
26
#define VERSION_SERIAL_MINOR    0
Line 35... Line 36...
35
#define FC_STATUS_EMERGENCY_LANDING             0x10
36
#define FC_STATUS_EMERGENCY_LANDING             0x10
36
#define FC_STATUS_LOWBAT                                0x20
37
#define FC_STATUS_LOWBAT                                0x20
37
#define FC_STATUS_VARIO_TRIM_UP                 0x40
38
#define FC_STATUS_VARIO_TRIM_UP                 0x40
38
#define FC_STATUS_VARIO_TRIM_DOWN               0x80
39
#define FC_STATUS_VARIO_TRIM_DOWN               0x80
Line -... Line 40...
-
 
40
 
-
 
41
// FC STATUS FLAGS2
-
 
42
#define FC_STATUS2_CAREFREE                 0x01
-
 
43
#define FC_STATUS2_ALTITUDE_CONTROL         0x02
-
 
44
 
39
 
45
 
40
// FC ERRORS FLAGS
46
// FC ERRORS FLAGS
41
#define FC_ERROR0_GYRO_NICK     0x01
47
#define FC_ERROR0_GYRO_NICK     0x01
42
#define FC_ERROR0_GYRO_ROLL     0x02
48
#define FC_ERROR0_GYRO_ROLL     0x02
43
#define FC_ERROR0_GYRO_YAW              0x04
49
#define FC_ERROR0_GYRO_YAW              0x04
Line 124... Line 130...
124
        u8 BAT_Voltage;
130
        u8 BAT_Voltage;
125
        u16 BAT_Current;
131
        u16 BAT_Current;
126
        u16 BAT_UsedCapacity;
132
        u16 BAT_UsedCapacity;
127
        u8 StatusFlags;
133
        u8 StatusFlags;
128
        u8 Error[5];
134
        u8 Error[5];
-
 
135
        u8 StatusFlags2;
129
} __attribute__((packed)) FC_t;
136
} __attribute__((packed)) FC_t;
Line 130... Line 137...
130
 
137
 
131
 
138