Rev 326 | Rev 328 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 326 | Rev 327 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | //#define DEBUG 0 |
12 | //#define DEBUG 0 |
13 | //----------------------- |
13 | //----------------------- |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | #define VERSION_MAJOR 0 |
15 | #define VERSION_MAJOR 0 |
16 | #define VERSION_MINOR 25 |
16 | #define VERSION_MINOR 25 |
17 | #define VERSION_PATCH 4 |
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 33... | Line 33... | ||
33 | 33 | ||
34 | #define VERSION_SERIAL_MAJOR 11 |
34 | #define VERSION_SERIAL_MAJOR 11 |
Line 35... | Line 35... | ||
35 | #define VERSION_SERIAL_MINOR 0 |
35 | #define VERSION_SERIAL_MINOR 0 |
36 | 36 | ||
37 | #ifndef FOLLOW_ME |
37 | #ifndef FOLLOW_ME |
38 | #define FC_SPI_COMPATIBLE 21 |
38 | #define FC_SPI_COMPATIBLE 22 |
39 | #else |
39 | #else |
Line 40... | Line 40... | ||
40 | #define FC_SPI_COMPATIBLE 0xFF |
40 | #define FC_SPI_COMPATIBLE 0xFF |
Line 102... | Line 102... | ||
102 | #define CFG2_VARIO_BEEP 0x02 |
102 | #define CFG2_VARIO_BEEP 0x02 |
103 | #define CFG_SENSITIVE_RC 0x04 |
103 | #define CFG_SENSITIVE_RC 0x04 |
104 | #define CFG_3_3V_REFERENCE 0x08 |
104 | #define CFG_3_3V_REFERENCE 0x08 |
105 | #define CFG_NO_RCOFF_BEEPING 0x10 |
105 | #define CFG_NO_RCOFF_BEEPING 0x10 |
106 | #define CFG_GPS_AID 0x20 |
106 | #define CFG_GPS_AID 0x20 |
107 | #define CFG_LEARNABLE_CAREFREE 0x40 |
107 | #define CFG_TEACHABLE_CAREFREE 0x40 |
Line 108... | Line 108... | ||
108 | 108 | ||
109 | 109 | ||
110 | #define LIMIT_MIN(value, min) {if(value <= min) value = min;} |
110 | #define LIMIT_MIN(value, min) {if(value <= min) value = min;} |
Line -... | Line 111... | ||
- | 111 | #define LIMIT_MAX(value, max) {if(value >= max) value = max;} |
|
- | 112 | #define LIMIT_MIN_MAX(value, min, max) {if(value <= min) value = min; else if(value >= max) value = max;} |
|
- | 113 | ||
- | 114 | ||
- | 115 | #define Poti1 FC.Poti[0] |
|
- | 116 | #define Poti2 FC.Poti[1] |
|
- | 117 | #define Poti3 FC.Poti[2] |
|
- | 118 | #define Poti4 FC.Poti[3] |
|
- | 119 | #define Poti5 FC.Poti[4] |
|
- | 120 | #define Poti6 FC.Poti[5] |
|
111 | #define LIMIT_MAX(value, max) {if(value >= max) value = max;} |
121 | #define Poti7 FC.Poti[6] |
112 | #define LIMIT_MIN_MAX(value, min, max) {if(value <= min) value = min; else if(value >= max) value = max;} |
122 | #define Poti8 FC.Poti[7] |
113 | 123 | ||
114 | extern u16 BeepTime; |
124 | extern u16 BeepTime; |
115 | extern u8 NCFlags; |
125 | extern u8 NCFlags; |
Line 116... | Line -... | ||
116 | extern u8 ClearFCStatusFlags; |
- | |
117 | void Interrupt_Init(void); |
126 | extern u8 ClearFCStatusFlags; |
118 | extern s16 GeoMagDec; |
127 | void Interrupt_Init(void); |
119 | 128 | extern s16 GeoMagDec; |
|
120 | 129 | ||
121 | typedef struct |
130 | typedef struct |
Line 140... | Line 149... | ||
140 | u8 NaviGpsACC; |
149 | u8 NaviGpsACC; |
141 | u8 NaviGpsMinSat; |
150 | u8 NaviGpsMinSat; |
142 | u8 NaviStickThreshold; |
151 | u8 NaviStickThreshold; |
143 | u8 NaviOperatingRadius; |
152 | u8 NaviOperatingRadius; |
144 | u8 NaviWindCorrection; |
153 | u8 NaviWindCorrection; |
- | 154 | u8 NaviAccCompensation; |
|
145 | u8 NaviSpeedCompensation; |
155 | u8 NaviSpeedCompensation; |
146 | u8 LowVoltageWarning; |
156 | u8 LowVoltageWarning; |
147 | u8 NaviAngleLimitation; |
157 | u8 NaviAngleLimitation; |
148 | u8 NaviPH_LoginTime; |
158 | u8 NaviPH_LoginTime; |
149 | u8 OrientationAngle; |
159 | u8 OrientationAngle; |
Line 157... | Line 167... | ||
157 | s8 StickNick; |
167 | s8 StickNick; |
158 | s8 StickRoll; |
168 | s8 StickRoll; |
159 | s8 StickYaw; |
169 | s8 StickYaw; |
160 | s8 StickGas; |
170 | s8 StickGas; |
161 | u8 Poti[8]; |
171 | u8 Poti[8]; |
162 | u8 Poti5; |
- | |
163 | u8 Poti6; |
- | |
164 | u8 Poti7; |
- | |
165 | u8 Poti8; |
- | |
166 | u8 RC_Quality; |
172 | u8 RC_Quality; |
167 | u8 RC_RSSI; |
173 | u8 RC_RSSI; |
168 | u8 BAT_Voltage; |
174 | u8 BAT_Voltage; |
169 | u16 BAT_Current; |
175 | u16 BAT_Current; |
170 | u16 BAT_UsedCapacity; |
176 | u16 BAT_UsedCapacity; |