Rev 589 | Rev 607 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 589 | Rev 595 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | //#define DEBUG 0 |
12 | //#define DEBUG 0 |
13 | //----------------------- |
13 | //----------------------- |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | #define VERSION_MAJOR 2 |
15 | #define VERSION_MAJOR 2 |
16 | #define VERSION_MINOR 9 |
16 | #define VERSION_MINOR 9 |
17 | #define VERSION_PATCH 3 |
17 | #define VERSION_PATCH 5 |
18 | // 0 = A |
18 | // 0 = A |
19 | // 1 = B |
19 | // 1 = B |
20 | // 2 = C |
20 | // 2 = C |
21 | // 3 = D |
21 | // 3 = D |
Line 34... | Line 34... | ||
34 | // 16 = Q |
34 | // 16 = Q |
35 | // 17 = R |
35 | // 17 = R |
36 | // 18 = S |
36 | // 18 = S |
Line 37... | Line 37... | ||
37 | 37 | ||
38 | #ifndef FOLLOW_ME |
38 | #ifndef FOLLOW_ME |
39 | #define FC_SPI_COMPATIBLE 73 // <------------------ |
39 | #define FC_SPI_COMPATIBLE 74 // <------------------ |
40 | #else |
40 | #else |
41 | #define FC_SPI_COMPATIBLE 0xFF |
41 | #define FC_SPI_COMPATIBLE 0xFF |
Line 42... | Line 42... | ||
42 | #endif |
42 | #endif |
Line 63... | Line 63... | ||
63 | 63 | ||
64 | // FC.StatusFlags3 |
64 | // FC.StatusFlags3 |
65 | #define FC_STATUS3_REDUNDANCE 0x01 |
65 | #define FC_STATUS3_REDUNDANCE 0x01 |
Line -... | Line 66... | ||
- | 66 | #define FC_STATUS3_BOAT 0x02 |
|
- | 67 | ||
- | 68 | #define OSD_FLAG_MASK1 (0x04 + 0x20 + 0x40 + 0x80) |
|
- | 69 | #define OSD_FLAG_MASK2 (0x01 + 0x02 + 0x08 + 0x10) |
|
- | 70 | ||
- | 71 | // .NCFlags |
|
- | 72 | #define NC_FLAG_FREE 0x01 |
|
- | 73 | #define NC_FLAG_PH 0x02 |
|
- | 74 | #define NC_FLAG_CH 0x04 |
|
- | 75 | #define NC_FLAG_RANGE_LIMIT 0x08 |
|
- | 76 | #define NC_FLAG_NOSERIALLINK 0x10 |
|
- | 77 | #define NC_FLAG_TARGET_REACHED 0x20 |
|
- | 78 | #define NC_FLAG_MANUAL_CONTROL 0x40 |
|
- | 79 | #define NC_FLAG_GPS_OK 0x80 |
|
- | 80 | ||
- | 81 | ||
- | 82 | // NC calculates |
|
- | 83 | //OSDStatusFlags = (FC.StatusFlags & OSD_FLAG_MASK1) | (FC.StatusFlags2 & OSD_FLAG_MASK2); |
|
- | 84 | //OSDStatusFlags2 = (FC.StatusFlags & ~OSD_FLAG_MASK1) | (FC.StatusFlags2 & ~OSD_FLAG_MASK2); |
|
- | 85 | ||
- | 86 | //calculate Back: |
|
- | 87 | //FC.StatusFlags = (OSDStatusFlags & OSD_FLAG_MASK1) | (OSDStatusFlags2 & ~OSD_FLAG_MASK1); |
|
66 | #define FC_STATUS3_BOAT 0x02 |
88 | //FC.StatusFlags2 = (OSDStatusFlags & OSD_FLAG_MASK2) | (OSDStatusFlags2 & ~OSD_FLAG_MASK2); |
67 | 89 | ||
68 | // FC ERRORS FLAGS |
90 | // FC ERRORS FLAGS |
69 | #define FC_ERROR0_GYRO_NICK 0x01 |
91 | #define FC_ERROR0_GYRO_NICK 0x01 |
70 | #define FC_ERROR0_GYRO_ROLL 0x02 |
92 | #define FC_ERROR0_GYRO_ROLL 0x02 |
Line 217... | Line 239... | ||
217 | s8 StickYaw; |
239 | s8 StickYaw; |
218 | s8 StickGas; |
240 | s8 StickGas; |
219 | u8 Poti[8]; |
241 | u8 Poti[8]; |
220 | u8 RC_Quality; |
242 | u8 RC_Quality; |
221 | u8 RC_RSSI; |
243 | u8 RC_RSSI; |
222 | u8 BAT_Voltage; |
244 | u16 BAT_Voltage; |
223 | u16 BAT_Current; |
245 | u16 BAT_Current; |
224 | u16 BAT_UsedCapacity; |
246 | u16 BAT_UsedCapacity; |
225 | u8 StatusFlags; |
247 | u8 StatusFlags; |
226 | u8 Error[5]; |
248 | u8 Error[5]; |
227 | u8 StatusFlags2; |
249 | u8 StatusFlags2; |