Rev 1703 | Rev 1761 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1703 | Rev 1760 | ||
---|---|---|---|
Line 120... | Line 120... | ||
120 | 120 | ||
121 | 121 | ||
122 | /***************************************************/ |
122 | /***************************************************/ |
123 | /* Default Values for parameter set 1 */ |
123 | /* Default Values for parameter set 1 */ |
124 | /***************************************************/ |
124 | /***************************************************/ |
125 | void ParamSet_DefaultSet1(void) // sport |
125 | void CommonDefaults(void) |
Line 126... | Line 126... | ||
126 | { |
126 | { |
127 | EE_Parameter.Revision = EEPARAM_REVISION; |
127 | EE_Parameter.Revision = EEPARAM_REVISION; |
Line 140... | Line 140... | ||
140 | EE_Parameter.Driftkomp = 32; |
140 | EE_Parameter.Driftkomp = 32; |
141 | EE_Parameter.GyroAccFaktor = 30; |
141 | EE_Parameter.GyroAccFaktor = 30; |
142 | EE_Parameter.WinkelUmschlagNick = 85; |
142 | EE_Parameter.WinkelUmschlagNick = 85; |
143 | EE_Parameter.WinkelUmschlagRoll = 85; |
143 | EE_Parameter.WinkelUmschlagRoll = 85; |
144 | } |
144 | } |
145 | EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV | CFG_KOMPASS_AKTIV | CFG_GPS_AKTIV | CFG_HOEHEN_SCHALTER; |
- | |
146 | EE_Parameter.ExtraConfig = CFG2_HEIGHT_LIMIT | CFG2_VARIO_BEEP;// | CFG_SENSITIVE_RC |
- | |
147 | EE_Parameter.Hoehe_MinGas = 30; |
- | |
148 | EE_Parameter.MaxHoehe = 255; // Wert : 0-247 255 -> Poti1 |
- | |
149 | EE_Parameter.Hoehe_P = 15; // Wert : 0-32 |
- | |
150 | EE_Parameter.Luftdruck_D = 30; // Wert : 0-247 |
- | |
151 | EE_Parameter.Hoehe_ACC_Wirkung = 00; // Wert : 0-247 |
- | |
152 | EE_Parameter.Hoehe_HoverBand = 8; // Wert : 0-247 |
- | |
153 | EE_Parameter.Hoehe_GPS_Z = 64; // Wert : 0-247 |
- | |
154 | EE_Parameter.Hoehe_StickNeutralPoint = 0; // Wert : 0-247 (0 = Hover-Estimation) |
- | |
155 | EE_Parameter.Hoehe_Verstaerkung = 20; // Wert : 0-50 |
- | |
156 | EE_Parameter.Stick_P = 14; // Wert : 1-20 |
- | |
- | 145 | ||
157 | EE_Parameter.Stick_D = 16; // Wert : 0-20 |
- | |
158 | EE_Parameter.Gier_P = 12; // Wert : 1-20 |
- | |
159 | EE_Parameter.Gas_Min = 8; // Wert : 0-32 |
- | |
160 | EE_Parameter.Gas_Max = 230; // Wert : 33-247 |
- | |
161 | EE_Parameter.KompassWirkung = 128; // Wert : 0-247 |
- | |
162 | EE_Parameter.Gyro_P = 80; // Wert : 0-247 |
- | |
163 | EE_Parameter.Gyro_I = 150; // Wert : 0-247 |
- | |
164 | EE_Parameter.Gyro_Gier_P = 80; // Wert : 0-247 |
- | |
165 | EE_Parameter.Gyro_Gier_I = 150; // Wert : 0-247 |
- | |
166 | EE_Parameter.Gyro_Stability = 6; // Wert : 1-8 |
- | |
167 | EE_Parameter.UnterspannungsWarnung = 33; // Wert : 0-247 ( Automatische Zellenerkennung bei < 50) |
- | |
168 | EE_Parameter.NotGas = 45; // Wert : 0-247 // Gaswert bei Empangsverlust |
- | |
169 | EE_Parameter.NotGasZeit = 90; // Wert : 0-247 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
- | |
170 | EE_Parameter.I_Faktor = 32; |
- | |
171 | EE_Parameter.UserParam1 = 0; // zur freien Verwendung |
146 | EE_Parameter.UserParam1 = 0; // zur freien Verwendung |
172 | EE_Parameter.UserParam2 = 0; // zur freien Verwendung |
147 | EE_Parameter.UserParam2 = 0; // zur freien Verwendung |
173 | EE_Parameter.UserParam3 = 0; // zur freien Verwendung |
148 | EE_Parameter.UserParam3 = 0; // zur freien Verwendung |
174 | EE_Parameter.UserParam4 = 0; // zur freien Verwendung |
149 | EE_Parameter.UserParam4 = 0; // zur freien Verwendung |
175 | EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
150 | EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
Line 187... | Line 162... | ||
187 | EE_Parameter.Servo5 = 125; |
162 | EE_Parameter.Servo5 = 125; |
188 | EE_Parameter.ServoRollControl = 100; // Wert : 0-247 // Stellung des Servos |
163 | EE_Parameter.ServoRollControl = 100; // Wert : 0-247 // Stellung des Servos |
189 | EE_Parameter.ServoRollComp = 40; // Wert : 0-247 // Einfluss Gyro/Servo |
164 | EE_Parameter.ServoRollComp = 40; // Wert : 0-247 // Einfluss Gyro/Servo |
190 | EE_Parameter.ServoRollMin = 0; // Wert : 0-247 // Anschlag |
165 | EE_Parameter.ServoRollMin = 0; // Wert : 0-247 // Anschlag |
191 | EE_Parameter.ServoRollMax = 247; // Wert : 0-247 // Anschlag |
166 | EE_Parameter.ServoRollMax = 247; // Wert : 0-247 // Anschlag |
192 | EE_Parameter.LoopGasLimit = 50; |
- | |
193 | EE_Parameter.LoopThreshold = 90; // Wert: 0-247 Schwelle für Stickausschlag |
- | |
194 | EE_Parameter.LoopHysterese = 50; |
- | |
195 | EE_Parameter.BitConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
- | |
196 | EE_Parameter.AchsKopplung1 = 90; |
- | |
197 | EE_Parameter.AchsKopplung2 = 80; |
- | |
198 | EE_Parameter.CouplingYawCorrection = 1; |
- | |
199 | EE_Parameter.GyroAccAbgleich = 16; // 1/k; |
- | |
200 | EE_Parameter.DynamicStability = 100; |
- | |
201 | EE_Parameter.J16Bitmask = 95; |
167 | EE_Parameter.J16Bitmask = 95; |
202 | EE_Parameter.J17Bitmask = 243; |
168 | EE_Parameter.J17Bitmask = 243; |
203 | EE_Parameter.WARN_J16_Bitmask = 0xAA; |
169 | EE_Parameter.WARN_J16_Bitmask = 0xAA; |
204 | EE_Parameter.WARN_J17_Bitmask = 0xAA; |
170 | EE_Parameter.WARN_J17_Bitmask = 0xAA; |
205 | EE_Parameter.J16Timing = 15; |
171 | EE_Parameter.J16Timing = 20; |
206 | EE_Parameter.J17Timing = 15; |
172 | EE_Parameter.J17Timing = 20; |
207 | EE_Parameter.NaviGpsModeControl = 254; // 254 -> Poti 2 |
173 | EE_Parameter.NaviGpsModeControl = 254; // 254 -> Poti 2 |
208 | EE_Parameter.NaviGpsGain = 100; |
174 | EE_Parameter.NaviGpsGain = 100; |
209 | EE_Parameter.NaviGpsP = 90; |
175 | EE_Parameter.NaviGpsP = 90; |
210 | EE_Parameter.NaviGpsI = 90; |
176 | EE_Parameter.NaviGpsI = 90; |
211 | EE_Parameter.NaviGpsD = 90; |
177 | EE_Parameter.NaviGpsD = 90; |
Line 221... | Line 187... | ||
221 | EE_Parameter.NaviAngleLimitation = 100; |
187 | EE_Parameter.NaviAngleLimitation = 100; |
222 | EE_Parameter.NaviPH_LoginTime = 2; |
188 | EE_Parameter.NaviPH_LoginTime = 2; |
223 | EE_Parameter.Receiver = RECEIVER_SPEKTRUM; |
189 | EE_Parameter.Receiver = RECEIVER_SPEKTRUM; |
224 | EE_Parameter.OrientationAngle = 0; |
190 | EE_Parameter.OrientationAngle = 0; |
225 | EE_Parameter.OrientationModeControl = 0; |
191 | EE_Parameter.OrientationModeControl = 0; |
- | 192 | EE_Parameter.UnterspannungsWarnung = 33; // Wert : 0-247 ( Automatische Zellenerkennung bei < 50) |
|
- | 193 | EE_Parameter.NotGas = 45; // Wert : 0-247 // Gaswert bei Empangsverlust |
|
- | 194 | EE_Parameter.NotGasZeit = 90; // Wert : 0-247 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
|
- | 195 | EE_Parameter.MotorSafetySwitch = 0; |
|
- | 196 | EE_Parameter.ServoManualControlSpeed = 20; |
|
- | 197 | EE_Parameter.CamOrientation = 0; |
|
- | 198 | } |
|
- | 199 | ||
- | 200 | void ParamSet_DefaultSet1(void) // sport |
|
- | 201 | { |
|
- | 202 | CommonDefaults(); |
|
- | 203 | EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV | CFG_KOMPASS_AKTIV | CFG_GPS_AKTIV | CFG_HOEHEN_SCHALTER; |
|
- | 204 | EE_Parameter.ExtraConfig = CFG2_HEIGHT_LIMIT | CFG2_VARIO_BEEP;// | CFG_SENSITIVE_RC |
|
- | 205 | EE_Parameter.Hoehe_MinGas = 30; |
|
- | 206 | EE_Parameter.MaxHoehe = 255; // Wert : 0-247 255 -> Poti1 |
|
- | 207 | EE_Parameter.Hoehe_P = 15; // Wert : 0-32 |
|
- | 208 | EE_Parameter.Luftdruck_D = 30; // Wert : 0-247 |
|
- | 209 | EE_Parameter.Hoehe_ACC_Wirkung = 00; // Wert : 0-247 |
|
- | 210 | EE_Parameter.Hoehe_HoverBand = 8; // Wert : 0-247 |
|
- | 211 | EE_Parameter.Hoehe_GPS_Z = 64; // Wert : 0-247 |
|
- | 212 | EE_Parameter.Hoehe_StickNeutralPoint = 0; // Wert : 0-247 (0 = Hover-Estimation) |
|
- | 213 | EE_Parameter.Hoehe_Verstaerkung = 20; // Wert : 0-50 |
|
- | 214 | EE_Parameter.Stick_P = 14; // Wert : 1-20 |
|
- | 215 | EE_Parameter.Stick_D = 16; // Wert : 0-20 |
|
- | 216 | EE_Parameter.Gier_P = 12; // Wert : 1-20 |
|
- | 217 | EE_Parameter.Gas_Min = 8; // Wert : 0-32 |
|
- | 218 | EE_Parameter.Gas_Max = 230; // Wert : 33-247 |
|
- | 219 | EE_Parameter.KompassWirkung = 128; // Wert : 0-247 |
|
- | 220 | EE_Parameter.Gyro_P = 80; // Wert : 0-247 |
|
- | 221 | EE_Parameter.Gyro_I = 150; // Wert : 0-247 |
|
- | 222 | EE_Parameter.Gyro_Gier_P = 80; // Wert : 0-247 |
|
- | 223 | EE_Parameter.Gyro_Gier_I = 150; // Wert : 0-247 |
|
- | 224 | EE_Parameter.Gyro_Stability = 6; // Wert : 1-8 |
|
- | 225 | EE_Parameter.I_Faktor = 32; |
|
- | 226 | EE_Parameter.LoopGasLimit = 50; |
|
- | 227 | EE_Parameter.LoopThreshold = 90; // Wert: 0-247 Schwelle für Stickausschlag |
|
- | 228 | EE_Parameter.LoopHysterese = 50; |
|
- | 229 | EE_Parameter.BitConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
|
- | 230 | EE_Parameter.AchsKopplung1 = 90; |
|
- | 231 | EE_Parameter.AchsKopplung2 = 80; |
|
- | 232 | EE_Parameter.CouplingYawCorrection = 1; |
|
- | 233 | EE_Parameter.GyroAccAbgleich = 16; // 1/k; |
|
- | 234 | EE_Parameter.DynamicStability = 100; |
|
226 | memcpy(EE_Parameter.Name, "Sport\0", 12); |
235 | memcpy(EE_Parameter.Name, "Sport\0", 12); |
227 | EE_Parameter.crc = RAM_Checksum((uint8_t*)(&EE_Parameter), sizeof(EE_Parameter)-1); |
236 | EE_Parameter.crc = RAM_Checksum((uint8_t*)(&EE_Parameter), sizeof(EE_Parameter)-1); |
228 | } |
237 | } |
Line 229... | Line 238... | ||
229 | 238 | ||
230 | 239 | ||
231 | /***************************************************/ |
240 | /***************************************************/ |
232 | /* Default Values for parameter set 2 */ |
241 | /* Default Values for parameter set 2 */ |
233 | /***************************************************/ |
242 | /***************************************************/ |
234 | void ParamSet_DefaultSet2(void) // normal |
- | |
235 | { |
- | |
236 | EE_Parameter.Revision = EEPARAM_REVISION; |
- | |
237 | - | ||
238 | if(PlatinenVersion >= 20) |
- | |
239 | { |
243 | void ParamSet_DefaultSet2(void) // normal |
240 | EE_Parameter.Gyro_D = 10; |
- | |
241 | EE_Parameter.Driftkomp = 0; |
- | |
242 | EE_Parameter.GyroAccFaktor = 27; |
- | |
243 | EE_Parameter.WinkelUmschlagNick = 78; |
- | |
244 | EE_Parameter.WinkelUmschlagRoll = 78; |
- | |
245 | } |
- | |
246 | else |
- | |
247 | { |
- | |
248 | EE_Parameter.Gyro_D = 3; |
- | |
249 | EE_Parameter.Driftkomp = 32; |
- | |
250 | EE_Parameter.GyroAccFaktor = 30; |
- | |
251 | EE_Parameter.WinkelUmschlagNick = 85; |
- | |
252 | EE_Parameter.WinkelUmschlagRoll = 85; |
244 | { |
253 | } |
245 | CommonDefaults(); |
254 | EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV | CFG_KOMPASS_AKTIV | CFG_GPS_AKTIV | CFG_HOEHEN_SCHALTER; |
246 | EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV | CFG_KOMPASS_AKTIV | CFG_GPS_AKTIV | CFG_HOEHEN_SCHALTER; |
255 | EE_Parameter.ExtraConfig = CFG2_HEIGHT_LIMIT | CFG2_VARIO_BEEP;// CFG_SENSITIVE_RC |
247 | EE_Parameter.ExtraConfig = CFG2_HEIGHT_LIMIT | CFG2_VARIO_BEEP;// CFG_SENSITIVE_RC |
256 | EE_Parameter.Hoehe_MinGas = 30; |
248 | EE_Parameter.Hoehe_MinGas = 30; |
Line 271... | Line 263... | ||
271 | EE_Parameter.Gyro_P = 90; // Wert : 0-247 |
263 | EE_Parameter.Gyro_P = 90; // Wert : 0-247 |
272 | EE_Parameter.Gyro_I = 120; // Wert : 0-247 |
264 | EE_Parameter.Gyro_I = 120; // Wert : 0-247 |
273 | EE_Parameter.Gyro_Gier_P = 90; // Wert : 0-247 |
265 | EE_Parameter.Gyro_Gier_P = 90; // Wert : 0-247 |
274 | EE_Parameter.Gyro_Gier_I = 120; // Wert : 0-247 |
266 | EE_Parameter.Gyro_Gier_I = 120; // Wert : 0-247 |
275 | EE_Parameter.Gyro_Stability = 6; // Wert : 1-8 |
267 | EE_Parameter.Gyro_Stability = 6; // Wert : 1-8 |
276 | EE_Parameter.UnterspannungsWarnung = 33; // Wert : 0-247 ( Automatische Zellenerkennung bei < 50) |
- | |
277 | EE_Parameter.NotGas = 45; // Wert : 0-247 // Gaswert bei Empangsverlust |
- | |
278 | EE_Parameter.NotGasZeit = 90; // Wert : 0-247 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
- | |
279 | EE_Parameter.I_Faktor = 32; |
268 | EE_Parameter.I_Faktor = 32; |
280 | EE_Parameter.UserParam1 = 0; // zur freien Verwendung |
- | |
281 | EE_Parameter.UserParam2 = 0; // zur freien Verwendung |
- | |
282 | EE_Parameter.UserParam3 = 0; // zur freien Verwendung |
- | |
283 | EE_Parameter.UserParam4 = 0; // zur freien Verwendung |
- | |
284 | EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
- | |
285 | EE_Parameter.UserParam6 = 0; // zur freien Verwendung |
- | |
286 | EE_Parameter.UserParam7 = 0; // zur freien Verwendung |
- | |
287 | EE_Parameter.UserParam8 = 0; // zur freien Verwendung |
- | |
288 | EE_Parameter.ServoNickControl = 100; // Wert : 0-247 // Stellung des Servos |
- | |
289 | EE_Parameter.ServoNickComp = 40; // Wert : 0-247 // Einfluss Gyro/Servo |
- | |
290 | EE_Parameter.ServoCompInvert = 1; // Wert : 0-247 // Richtung Einfluss Gyro/Servo |
- | |
291 | EE_Parameter.ServoNickMin = 0; // Wert : 0-247 // Anschlag |
- | |
292 | EE_Parameter.ServoNickMax = 247; // Wert : 0-247 // Anschlag |
- | |
293 | EE_Parameter.ServoNickRefresh = 6; |
- | |
294 | EE_Parameter.Servo3 = 125; |
- | |
295 | EE_Parameter.Servo4 = 125; |
- | |
296 | EE_Parameter.Servo5 = 125; |
- | |
297 | EE_Parameter.ServoRollControl = 100; // Wert : 0-247 // Stellung des Servos |
- | |
298 | EE_Parameter.ServoRollComp = 40; // Wert : 0-247 // Einfluss Gyro/Servo |
- | |
299 | EE_Parameter.ServoRollMin = 0; // Wert : 0-247 // Anschlag |
- | |
300 | EE_Parameter.ServoRollMax = 247; // Wert : 0-247 // Anschlag |
- | |
301 | EE_Parameter.LoopGasLimit = 50; |
269 | EE_Parameter.LoopGasLimit = 50; |
302 | EE_Parameter.LoopThreshold = 90; // Wert: 0-247 Schwelle für Stickausschlag |
270 | EE_Parameter.LoopThreshold = 90; // Wert: 0-247 Schwelle für Stickausschlag |
303 | EE_Parameter.LoopHysterese = 50; |
271 | EE_Parameter.LoopHysterese = 50; |
304 | EE_Parameter.BitConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts |
272 | EE_Parameter.BitConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts |
305 | EE_Parameter.AchsKopplung1 = 90; |
273 | EE_Parameter.AchsKopplung1 = 90; |
306 | EE_Parameter.AchsKopplung2 = 80; |
274 | EE_Parameter.AchsKopplung2 = 80; |
307 | EE_Parameter.CouplingYawCorrection = 60; |
275 | EE_Parameter.CouplingYawCorrection = 60; |
308 | EE_Parameter.GyroAccAbgleich = 32; // 1/k |
276 | EE_Parameter.GyroAccAbgleich = 32; // 1/k |
309 | EE_Parameter.DynamicStability = 75; |
277 | EE_Parameter.DynamicStability = 75; |
310 | EE_Parameter.J16Bitmask = 95; |
- | |
311 | EE_Parameter.J17Bitmask = 243; |
- | |
312 | EE_Parameter.WARN_J16_Bitmask = 0xAA; |
- | |
313 | EE_Parameter.WARN_J17_Bitmask = 0xAA; |
- | |
314 | EE_Parameter.J16Timing = 20; |
- | |
315 | EE_Parameter.J17Timing = 20; |
- | |
316 | EE_Parameter.NaviGpsModeControl = 254; // 254 -> Poti 2 |
- | |
317 | EE_Parameter.NaviGpsGain = 100; |
- | |
318 | EE_Parameter.NaviGpsP = 90; |
- | |
319 | EE_Parameter.NaviGpsI = 90; |
- | |
320 | EE_Parameter.NaviGpsD = 90; |
- | |
321 | EE_Parameter.NaviGpsPLimit = 75; |
- | |
322 | EE_Parameter.NaviGpsILimit = 75; |
- | |
323 | EE_Parameter.NaviGpsDLimit = 75; |
- | |
324 | EE_Parameter.NaviGpsACC = 0; |
- | |
325 | EE_Parameter.NaviGpsMinSat = 6; |
- | |
326 | EE_Parameter.NaviStickThreshold = 8; |
- | |
327 | EE_Parameter.NaviWindCorrection = 90; |
- | |
328 | EE_Parameter.NaviSpeedCompensation = 30; |
- | |
329 | EE_Parameter.NaviOperatingRadius = 100; |
- | |
330 | EE_Parameter.NaviAngleLimitation = 100; |
- | |
331 | EE_Parameter.NaviPH_LoginTime = 2; |
- | |
332 | EE_Parameter.Receiver = RECEIVER_SPEKTRUM; |
- | |
333 | EE_Parameter.OrientationAngle = 0; |
- | |
334 | EE_Parameter.OrientationModeControl = 0; |
- | |
335 | memcpy(EE_Parameter.Name, "Normal\0", 12); |
278 | memcpy(EE_Parameter.Name, "Normal\0", 12); |
336 | EE_Parameter.crc = RAM_Checksum((uint8_t*)(&EE_Parameter), sizeof(EE_Parameter)-1); |
279 | EE_Parameter.crc = RAM_Checksum((uint8_t*)(&EE_Parameter), sizeof(EE_Parameter)-1); |
337 | } |
280 | } |
Line 338... | Line 281... | ||
338 | 281 | ||
339 | 282 | ||
340 | /***************************************************/ |
283 | /***************************************************/ |
341 | /* Default Values for parameter set 3 */ |
284 | /* Default Values for parameter set 3 */ |
342 | /***************************************************/ |
285 | /***************************************************/ |
343 | void ParamSet_DefaultSet3(void) // beginner |
- | |
344 | { |
- | |
345 | EE_Parameter.Revision = EEPARAM_REVISION; |
- | |
346 | if(PlatinenVersion >= 20) |
- | |
347 | { |
- | |
348 | EE_Parameter.Gyro_D = 10; |
- | |
349 | EE_Parameter.Driftkomp = 0; |
- | |
350 | EE_Parameter.GyroAccFaktor = 27; |
- | |
351 | EE_Parameter.WinkelUmschlagNick = 78; |
- | |
352 | EE_Parameter.WinkelUmschlagRoll = 78; |
- | |
353 | } |
- | |
354 | else |
- | |
355 | { |
- | |
356 | EE_Parameter.Gyro_D = 3; |
- | |
357 | EE_Parameter.Driftkomp = 32; |
- | |
358 | EE_Parameter.GyroAccFaktor = 30; |
- | |
359 | EE_Parameter.WinkelUmschlagNick = 85; |
- | |
360 | EE_Parameter.WinkelUmschlagRoll = 85; |
286 | void ParamSet_DefaultSet3(void) // beginner |
361 | } |
287 | { |
362 | EE_Parameter.GlobalConfig = /*CFG_DREHRATEN_BEGRENZER |*/ CFG_ACHSENKOPPLUNG_AKTIV | CFG_KOMPASS_AKTIV | CFG_GPS_AKTIV | CFG_HOEHEN_SCHALTER; |
288 | EE_Parameter.GlobalConfig = /*CFG_DREHRATEN_BEGRENZER |*/ CFG_ACHSENKOPPLUNG_AKTIV | CFG_KOMPASS_AKTIV | CFG_GPS_AKTIV | CFG_HOEHEN_SCHALTER; |
363 | EE_Parameter.ExtraConfig = CFG2_HEIGHT_LIMIT | CFG2_VARIO_BEEP;// | CFG_SENSITIVE_RC |
289 | EE_Parameter.ExtraConfig = CFG2_HEIGHT_LIMIT | CFG2_VARIO_BEEP;// | CFG_SENSITIVE_RC |
364 | EE_Parameter.Hoehe_MinGas = 30; |
290 | EE_Parameter.Hoehe_MinGas = 30; |
Line 379... | Line 305... | ||
379 | EE_Parameter.Gyro_P = 100; // Wert : 0-247 |
305 | EE_Parameter.Gyro_P = 100; // Wert : 0-247 |
380 | EE_Parameter.Gyro_I = 120; // Wert : 0-247 |
306 | EE_Parameter.Gyro_I = 120; // Wert : 0-247 |
381 | EE_Parameter.Gyro_Gier_P = 100; // Wert : 0-247 |
307 | EE_Parameter.Gyro_Gier_P = 100; // Wert : 0-247 |
382 | EE_Parameter.Gyro_Gier_I = 120; // Wert : 0-247 |
308 | EE_Parameter.Gyro_Gier_I = 120; // Wert : 0-247 |
383 | EE_Parameter.Gyro_Stability = 6; // Wert : 1-8 |
309 | EE_Parameter.Gyro_Stability = 6; // Wert : 1-8 |
384 | EE_Parameter.UnterspannungsWarnung = 33; // Wert : 0-247 ( Automatische Zellenerkennung bei < 50) |
- | |
385 | EE_Parameter.NotGas = 45; // Wert : 0-247 // Gaswert bei Empangsverlust |
- | |
386 | EE_Parameter.NotGasZeit = 90; // Wert : 0-247 // Zeit bis auf NotGas geschaltet wird, wg. Rx-Problemen |
- | |
387 | EE_Parameter.I_Faktor = 16; |
310 | EE_Parameter.I_Faktor = 16; |
388 | EE_Parameter.UserParam1 = 0; // zur freien Verwendung |
- | |
389 | EE_Parameter.UserParam2 = 0; // zur freien Verwendung |
- | |
390 | EE_Parameter.UserParam3 = 0; // zur freien Verwendung |
- | |
391 | EE_Parameter.UserParam4 = 0; // zur freien Verwendung |
- | |
392 | EE_Parameter.UserParam5 = 0; // zur freien Verwendung |
- | |
393 | EE_Parameter.UserParam6 = 0; // zur freien Verwendung |
- | |
394 | EE_Parameter.UserParam7 = 0; // zur freien Verwendung |
- | |
395 | EE_Parameter.UserParam8 = 0; // zur freien Verwendung |
- | |
396 | EE_Parameter.ServoNickControl = 100; // Wert : 0-247 // Stellung des Servos |
- | |
397 | EE_Parameter.ServoNickComp = 40; // Wert : 0-247 // Einfluss Gyro/Servo |
- | |
398 | EE_Parameter.ServoCompInvert = 1; // Wert : 0-247 // Richtung Einfluss Gyro/Servo |
- | |
399 | EE_Parameter.ServoNickMin = 0; // Wert : 0-247 // Anschlag |
- | |
400 | EE_Parameter.ServoNickMax = 247; // Wert : 0-247 // Anschlag |
- | |
401 | EE_Parameter.ServoNickRefresh = 6; |
- | |
402 | EE_Parameter.Servo3 = 125; |
- | |
403 | EE_Parameter.Servo4 = 125; |
- | |
404 | EE_Parameter.Servo5 = 125; |
- | |
405 | EE_Parameter.ServoRollControl = 100; // Wert : 0-247 // Stellung des Servos |
- | |
406 | EE_Parameter.ServoRollComp = 40; // Wert : 0-247 // Einfluss Gyro/Servo |
- | |
407 | EE_Parameter.ServoRollMin = 0; // Wert : 0-247 // Anschlag |
- | |
408 | EE_Parameter.ServoRollMax = 247; // Wert : 0-247 // Anschlag |
- | |
409 | EE_Parameter.LoopGasLimit = 50; |
311 | EE_Parameter.LoopGasLimit = 50; |
410 | EE_Parameter.LoopThreshold = 90; // Wert: 0-247 Schwelle für Stickausschlag |
312 | EE_Parameter.LoopThreshold = 90; // Wert: 0-247 Schwelle für Stickausschlag |
411 | EE_Parameter.LoopHysterese = 50; |
313 | EE_Parameter.LoopHysterese = 50; |
412 | EE_Parameter.BitConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts |
314 | EE_Parameter.BitConfig = 0; // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts |
413 | EE_Parameter.AchsKopplung1 = 90; |
315 | EE_Parameter.AchsKopplung1 = 90; |
414 | EE_Parameter.AchsKopplung2 = 80; |
316 | EE_Parameter.AchsKopplung2 = 80; |
415 | EE_Parameter.CouplingYawCorrection = 70; |
317 | EE_Parameter.CouplingYawCorrection = 70; |
416 | EE_Parameter.GyroAccAbgleich = 32; // 1/k |
318 | EE_Parameter.GyroAccAbgleich = 32; // 1/k |
417 | EE_Parameter.DynamicStability = 70; |
319 | EE_Parameter.DynamicStability = 70; |
418 | EE_Parameter.J16Bitmask = 95; |
- | |
419 | EE_Parameter.J17Bitmask = 243; |
- | |
420 | EE_Parameter.WARN_J16_Bitmask = 0xAA; |
- | |
421 | EE_Parameter.WARN_J17_Bitmask = 0xAA; |
- | |
422 | EE_Parameter.J16Timing = 30; |
- | |
423 | EE_Parameter.J17Timing = 30; |
- | |
424 | EE_Parameter.NaviGpsModeControl = 254; // 254 -> Poti 2 |
- | |
425 | EE_Parameter.NaviGpsGain = 100; |
- | |
426 | EE_Parameter.NaviGpsP = 90; |
- | |
427 | EE_Parameter.NaviGpsI = 90; |
- | |
428 | EE_Parameter.NaviGpsD = 90; |
- | |
429 | EE_Parameter.NaviGpsPLimit = 75; |
- | |
430 | EE_Parameter.NaviGpsILimit = 75; |
- | |
431 | EE_Parameter.NaviGpsDLimit = 75; |
- | |
432 | EE_Parameter.NaviGpsACC = 0; |
- | |
433 | EE_Parameter.NaviGpsMinSat = 6; |
- | |
434 | EE_Parameter.NaviStickThreshold = 8; |
- | |
435 | EE_Parameter.NaviWindCorrection = 90; |
- | |
436 | EE_Parameter.NaviSpeedCompensation = 30; |
- | |
437 | EE_Parameter.NaviOperatingRadius = 100; |
- | |
438 | EE_Parameter.NaviAngleLimitation = 100; |
- | |
439 | EE_Parameter.NaviPH_LoginTime = 2; |
- | |
440 | EE_Parameter.Receiver = RECEIVER_SPEKTRUM; |
- | |
441 | EE_Parameter.OrientationAngle = 0; |
- | |
442 | EE_Parameter.OrientationModeControl = 0; |
- | |
443 | memcpy(EE_Parameter.Name, "Beginner\0", 12); |
320 | memcpy(EE_Parameter.Name, "Beginner\0", 12); |
444 | EE_Parameter.crc = RAM_Checksum((uint8_t*)(&EE_Parameter), sizeof(EE_Parameter)-1); |
321 | EE_Parameter.crc = RAM_Checksum((uint8_t*)(&EE_Parameter), sizeof(EE_Parameter)-1); |
445 | } |
322 | } |
Line 446... | Line 323... | ||
446 | 323 |