Subversion Repositories FlightCtrl

Rev

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

Rev 1761 Rev 1762
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;
-
 
147
        EE_Parameter.Receiver = RECEIVER_SPEKTRUM;
-
 
148
        EE_Parameter.MotorSafetySwitch = 0;
-
 
149
 
-
 
150
        EE_Parameter.Gas_Min = 8;             // Wert : 0-32
-
 
151
        EE_Parameter.Gas_Max = 230;           // Wert : 33-247
-
 
152
        EE_Parameter.KompassWirkung = 128;    // Wert : 0-247
-
 
153
 
-
 
154
        EE_Parameter.Hoehe_MinGas = 30;
-
 
155
        EE_Parameter.MaxHoehe     = 255;         // Wert : 0-247   255 -> Poti1
-
 
156
        EE_Parameter.Hoehe_P      = 15;          // Wert : 0-32
-
 
157
        EE_Parameter.Luftdruck_D  = 30;          // Wert : 0-247
-
 
158
        EE_Parameter.Hoehe_ACC_Wirkung = 0;     // Wert : 0-247
-
 
159
        EE_Parameter.Hoehe_HoverBand = 8;         // Wert : 0-247
-
 
160
        EE_Parameter.Hoehe_GPS_Z = 64;           // Wert : 0-247
-
 
161
        EE_Parameter.Hoehe_StickNeutralPoint = 0;// Wert : 0-247 (0 = Hover-Estimation)
-
 
162
        EE_Parameter.Hoehe_Verstaerkung = 15;    // Wert : 0-50
Line 145... Line 163...
145
 
163
 
146
        EE_Parameter.UserParam1 =   0;           // zur freien Verwendung
164
        EE_Parameter.UserParam1 =   0;           // zur freien Verwendung
147
        EE_Parameter.UserParam2 =   0;           // zur freien Verwendung
165
        EE_Parameter.UserParam2 =   0;           // zur freien Verwendung
148
        EE_Parameter.UserParam3 =   0;           // zur freien Verwendung
166
        EE_Parameter.UserParam3 =   0;           // zur freien Verwendung
149
        EE_Parameter.UserParam4 =   0;           // zur freien Verwendung
167
        EE_Parameter.UserParam4 =   0;           // zur freien Verwendung
150
        EE_Parameter.UserParam5 =   0;           // zur freien Verwendung
168
        EE_Parameter.UserParam5 =   0;           // zur freien Verwendung
151
        EE_Parameter.UserParam6 =   0;           // zur freien Verwendung
169
        EE_Parameter.UserParam6 =   0;           // zur freien Verwendung
152
        EE_Parameter.UserParam7 = 0;             // zur freien Verwendung
170
        EE_Parameter.UserParam7 = 0;             // zur freien Verwendung
-
 
171
        EE_Parameter.UserParam8 = 0;             // zur freien Verwendung
153
        EE_Parameter.UserParam8 = 0;             // zur freien Verwendung
172
 
154
        EE_Parameter.ServoNickControl = 100;     // Wert : 0-247     // Stellung des Servos
173
        EE_Parameter.ServoNickControl = 100;     // Wert : 0-247     // Stellung des Servos
155
        EE_Parameter.ServoNickComp = 40;         // Wert : 0-247     // Einfluss Gyro/Servo
174
        EE_Parameter.ServoNickComp = 40;         // Wert : 0-247     // Einfluss Gyro/Servo
156
        EE_Parameter.ServoCompInvert = 1;        // Wert : 0-247     // Richtung Einfluss Gyro/Servo
175
        EE_Parameter.ServoCompInvert = 1;        // Wert : 0-247     // Richtung Einfluss Gyro/Servo
157
        EE_Parameter.ServoNickMin = 0;           // Wert : 0-247     // Anschlag
176
        EE_Parameter.ServoNickMin = 15;           // Wert : 0-247     // Anschlag
158
        EE_Parameter.ServoNickMax = 247;         // Wert : 0-247     // Anschlag
177
        EE_Parameter.ServoNickMax = 255;         // Wert : 0-247     // Anschlag
159
        EE_Parameter.ServoNickRefresh = 6;
178
        EE_Parameter.ServoNickRefresh = 5;
160
        EE_Parameter.Servo3 = 125;
179
        EE_Parameter.Servo3 = 125;
161
        EE_Parameter.Servo4 = 125;
180
        EE_Parameter.Servo4 = 125;
162
        EE_Parameter.Servo5 = 125;
181
        EE_Parameter.Servo5 = 125;
163
        EE_Parameter.ServoRollControl = 100;     // Wert : 0-247     // Stellung des Servos
182
        EE_Parameter.ServoRollControl = 100;     // Wert : 0-247     // Stellung des Servos
164
        EE_Parameter.ServoRollComp = 40;         // Wert : 0-247     // Einfluss Gyro/Servo
183
        EE_Parameter.ServoRollComp = 40;         // Wert : 0-247     // Einfluss Gyro/Servo
165
        EE_Parameter.ServoRollMin = 0;           // Wert : 0-247     // Anschlag
184
        EE_Parameter.ServoRollMin = 0;           // Wert : 0-247     // Anschlag
-
 
185
        EE_Parameter.ServoRollMax = 247;         // Wert : 0-247     // Anschlag
-
 
186
        EE_Parameter.ServoManualControlSpeed = 30;
-
 
187
        EE_Parameter.CamOrientation = 0;
166
        EE_Parameter.ServoRollMax = 247;         // Wert : 0-247     // Anschlag
188
 
167
        EE_Parameter.J16Bitmask = 95;
189
        EE_Parameter.J16Bitmask = 95;
168
        EE_Parameter.J17Bitmask = 243;
190
        EE_Parameter.J17Bitmask = 243;
169
        EE_Parameter.WARN_J16_Bitmask = 0xAA;
191
        EE_Parameter.WARN_J16_Bitmask = 0xAA;
170
        EE_Parameter.WARN_J17_Bitmask = 0xAA;
192
        EE_Parameter.WARN_J17_Bitmask = 0xAA;
171
        EE_Parameter.J16Timing = 20;
193
        EE_Parameter.J16Timing = 20;
-
 
194
        EE_Parameter.J17Timing = 20;
-
 
195
 
-
 
196
        EE_Parameter.LoopGasLimit = 50;
-
 
197
        EE_Parameter.LoopThreshold = 90;         // Wert: 0-247  Schwelle für Stickausschlag
-
 
198
        EE_Parameter.LoopHysterese = 50;
-
 
199
        EE_Parameter.BitConfig = 0;              // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt
172
        EE_Parameter.J17Timing = 20;
200
 
173
        EE_Parameter.NaviGpsModeControl = 254; // 254 -> Poti 2
201
        EE_Parameter.NaviGpsModeControl = 254; // 254 -> Poti 2
174
        EE_Parameter.NaviGpsGain = 100;
202
        EE_Parameter.NaviGpsGain = 100;
175
        EE_Parameter.NaviGpsP = 90;
203
        EE_Parameter.NaviGpsP = 90;
176
        EE_Parameter.NaviGpsI = 90;
204
        EE_Parameter.NaviGpsI = 90;
Line 184... Line 212...
184
        EE_Parameter.NaviWindCorrection = 90;
212
        EE_Parameter.NaviWindCorrection = 90;
185
        EE_Parameter.NaviSpeedCompensation = 30;
213
        EE_Parameter.NaviSpeedCompensation = 30;
186
        EE_Parameter.NaviOperatingRadius = 100;
214
        EE_Parameter.NaviOperatingRadius = 100;
187
        EE_Parameter.NaviAngleLimitation = 100;
215
        EE_Parameter.NaviAngleLimitation = 100;
188
        EE_Parameter.NaviPH_LoginTime = 2;
216
        EE_Parameter.NaviPH_LoginTime = 2;
189
        EE_Parameter.Receiver = RECEIVER_SPEKTRUM;
-
 
190
        EE_Parameter.OrientationAngle = 0;
217
        EE_Parameter.OrientationAngle = 0;
191
        EE_Parameter.OrientationModeControl = 0;
218
        EE_Parameter.OrientationModeControl = 0;
192
        EE_Parameter.UnterspannungsWarnung = 33; // Wert : 0-247 ( Automatische Zellenerkennung bei < 50)
219
        EE_Parameter.UnterspannungsWarnung = 33; // Wert : 0-247 ( Automatische Zellenerkennung bei < 50)
193
        EE_Parameter.NotGas = 45;                // Wert : 0-247     // Gaswert bei Empangsverlust
220
        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
221
        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
}
222
}
Line 199... Line 223...
199
 
223
 
200
void ParamSet_DefaultSet1(void) // sport
224
void ParamSet_DefaultSet1(void) // sport
201
{
225
{
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
226
        CommonDefaults();
214
        EE_Parameter.Stick_P = 14;            // Wert : 1-20
227
        EE_Parameter.Stick_P = 14;            // Wert : 1-20
215
        EE_Parameter.Stick_D = 16;            // Wert : 0-20
228
        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
229
        EE_Parameter.Gier_P = 12;             // Wert : 1-20
220
        EE_Parameter.Gyro_P = 80;             // Wert : 0-247
230
        EE_Parameter.Gyro_P = 80;             // Wert : 0-247
221
        EE_Parameter.Gyro_I = 150;            // Wert : 0-247
231
        EE_Parameter.Gyro_I = 150;            // Wert : 0-247
222
        EE_Parameter.Gyro_Gier_P = 80;        // Wert : 0-247
232
        EE_Parameter.Gyro_Gier_P = 80;        // Wert : 0-247
223
        EE_Parameter.Gyro_Gier_I = 150;       // Wert : 0-247
233
        EE_Parameter.Gyro_Gier_I = 150;       // Wert : 0-247
224
        EE_Parameter.Gyro_Stability = 6;          // Wert : 1-8
234
        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
235
        EE_Parameter.I_Faktor = 32;
230
        EE_Parameter.AchsKopplung1 = 90;
236
        EE_Parameter.AchsKopplung1 = 90;
231
        EE_Parameter.AchsKopplung2 = 80;
237
        EE_Parameter.AchsKopplung2 = 80;
232
        EE_Parameter.CouplingYawCorrection = 1;
238
        EE_Parameter.CouplingYawCorrection = 1;
233
        EE_Parameter.GyroAccAbgleich = 16;        // 1/k;
239
        EE_Parameter.GyroAccAbgleich = 16;        // 1/k;
Line 241... Line 247...
241
/*    Default Values for parameter set 2           */
247
/*    Default Values for parameter set 2           */
242
/***************************************************/
248
/***************************************************/
243
void ParamSet_DefaultSet2(void) // normal
249
void ParamSet_DefaultSet2(void) // normal
244
{
250
{
245
        CommonDefaults();
251
        CommonDefaults();
246
        EE_Parameter.GlobalConfig = CFG_ACHSENKOPPLUNG_AKTIV | CFG_KOMPASS_AKTIV | CFG_GPS_AKTIV | CFG_HOEHEN_SCHALTER;
-
 
247
        EE_Parameter.ExtraConfig = CFG2_HEIGHT_LIMIT | CFG2_VARIO_BEEP;// CFG_SENSITIVE_RC
-
 
248
        EE_Parameter.Hoehe_MinGas = 30;
-
 
249
        EE_Parameter.MaxHoehe     = 255;         // Wert : 0-247   255 -> Poti1
-
 
250
        EE_Parameter.Hoehe_P      = 15;          // Wert : 0-32
-
 
251
        EE_Parameter.Luftdruck_D  = 30;          // Wert : 0-247
-
 
252
        EE_Parameter.Hoehe_ACC_Wirkung = 0;     // Wert : 0-247
-
 
253
        EE_Parameter.Hoehe_HoverBand = 8;        // Wert : 0-247
-
 
254
        EE_Parameter.Hoehe_GPS_Z = 64;           // Wert : 0-247
-
 
255
        EE_Parameter.Hoehe_StickNeutralPoint = 0;// Wert : 0-247 (0 = Hover-Estimation)
-
 
256
        EE_Parameter.Hoehe_Verstaerkung = 15;    // Wert : 0-50
-
 
257
        EE_Parameter.Stick_P = 10;               // Wert : 1-20
252
        EE_Parameter.Stick_P = 10;               // Wert : 1-20
258
        EE_Parameter.Stick_D = 16;               // Wert : 0-20
253
        EE_Parameter.Stick_D = 16;               // Wert : 0-20
259
        EE_Parameter.Gier_P = 6;                 // Wert : 1-20
254
        EE_Parameter.Gier_P = 6;                 // Wert : 1-20
260
        EE_Parameter.Gas_Min = 8;                // Wert : 0-32
-
 
261
        EE_Parameter.Gas_Max = 230;              // Wert : 33-247
-
 
262
        EE_Parameter.KompassWirkung = 128;       // Wert : 0-247
-
 
263
        EE_Parameter.Gyro_P = 90;                // Wert : 0-247
255
        EE_Parameter.Gyro_P = 90;                // Wert : 0-247
264
        EE_Parameter.Gyro_I = 120;               // Wert : 0-247
256
        EE_Parameter.Gyro_I = 120;               // Wert : 0-247
265
        EE_Parameter.Gyro_Gier_P = 90;           // Wert : 0-247
257
        EE_Parameter.Gyro_Gier_P = 90;           // Wert : 0-247
266
        EE_Parameter.Gyro_Gier_I = 120;          // Wert : 0-247
258
        EE_Parameter.Gyro_Gier_I = 120;          // Wert : 0-247
267
        EE_Parameter.Gyro_Stability = 6;                  // Wert : 1-8
259
        EE_Parameter.Gyro_Stability = 6;                  // Wert : 1-8
268
        EE_Parameter.I_Faktor = 32;
260
        EE_Parameter.I_Faktor = 32;
269
        EE_Parameter.LoopGasLimit = 50;
-
 
270
        EE_Parameter.LoopThreshold = 90;         // Wert: 0-247  Schwelle für Stickausschlag
-
 
271
        EE_Parameter.LoopHysterese = 50;
-
 
272
        EE_Parameter.BitConfig = 0;              // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts
-
 
273
        EE_Parameter.AchsKopplung1 = 90;
261
        EE_Parameter.AchsKopplung1 = 90;
274
        EE_Parameter.AchsKopplung2 = 80;
262
        EE_Parameter.AchsKopplung2 = 80;
275
        EE_Parameter.CouplingYawCorrection = 60;
263
        EE_Parameter.CouplingYawCorrection = 60;
276
        EE_Parameter.GyroAccAbgleich = 32;        // 1/k
264
        EE_Parameter.GyroAccAbgleich = 32;        // 1/k
277
        EE_Parameter.DynamicStability = 75;
265
        EE_Parameter.DynamicStability = 75;
Line 283... Line 271...
283
/***************************************************/
271
/***************************************************/
284
/*    Default Values for parameter set 3           */
272
/*    Default Values for parameter set 3           */
285
/***************************************************/
273
/***************************************************/
286
void ParamSet_DefaultSet3(void) // beginner
274
void ParamSet_DefaultSet3(void) // beginner
287
{
275
{
288
        EE_Parameter.GlobalConfig = /*CFG_DREHRATEN_BEGRENZER  |*/ CFG_ACHSENKOPPLUNG_AKTIV | CFG_KOMPASS_AKTIV | CFG_GPS_AKTIV | CFG_HOEHEN_SCHALTER;
-
 
289
        EE_Parameter.ExtraConfig = CFG2_HEIGHT_LIMIT | CFG2_VARIO_BEEP;// | CFG_SENSITIVE_RC
-
 
290
        EE_Parameter.Hoehe_MinGas = 30;
276
        CommonDefaults();
291
        EE_Parameter.MaxHoehe     = 255;         // Wert : 0-247   255 -> Poti1
-
 
292
        EE_Parameter.Hoehe_P      = 15;          // Wert : 0-32
-
 
293
        EE_Parameter.Luftdruck_D  = 30;          // Wert : 0-247
-
 
294
        EE_Parameter.Hoehe_ACC_Wirkung = 0;     // Wert : 0-247
-
 
295
        EE_Parameter.Hoehe_HoverBand = 8;         // Wert : 0-247
-
 
296
        EE_Parameter.Hoehe_GPS_Z = 64;           // Wert : 0-247
-
 
297
        EE_Parameter.Hoehe_StickNeutralPoint = 0;// Wert : 0-247 (0 = Hover-Estimation)
-
 
298
        EE_Parameter.Hoehe_Verstaerkung = 15;    // Wert : 0-50
-
 
299
        EE_Parameter.Stick_P = 8;                // Wert : 1-20
277
        EE_Parameter.Stick_P = 8;                // Wert : 1-20
300
        EE_Parameter.Stick_D = 16;               // Wert : 0-20
278
        EE_Parameter.Stick_D = 16;               // Wert : 0-20
301
        EE_Parameter.Gier_P  = 6;                // Wert : 1-20
279
        EE_Parameter.Gier_P  = 6;                // Wert : 1-20
302
        EE_Parameter.Gas_Min = 8;                // Wert : 0-32
-
 
303
        EE_Parameter.Gas_Max = 230;              // Wert : 33-247
-
 
304
        EE_Parameter.KompassWirkung = 128;       // Wert : 0-247
-
 
305
        EE_Parameter.Gyro_P = 100;               // Wert : 0-247
280
        EE_Parameter.Gyro_P = 100;               // Wert : 0-247
306
        EE_Parameter.Gyro_I = 120;               // Wert : 0-247
281
        EE_Parameter.Gyro_I = 120;               // Wert : 0-247
307
        EE_Parameter.Gyro_Gier_P = 100;          // Wert : 0-247
282
        EE_Parameter.Gyro_Gier_P = 100;          // Wert : 0-247
308
        EE_Parameter.Gyro_Gier_I = 120;          // Wert : 0-247
283
        EE_Parameter.Gyro_Gier_I = 120;          // Wert : 0-247
309
        EE_Parameter.Gyro_Stability = 6;                  // Wert : 1-8
284
        EE_Parameter.Gyro_Stability = 6;                  // Wert : 1-8
310
        EE_Parameter.I_Faktor = 16;
285
        EE_Parameter.I_Faktor = 16;
311
        EE_Parameter.LoopGasLimit = 50;
-
 
312
        EE_Parameter.LoopThreshold = 90;         // Wert: 0-247  Schwelle für Stickausschlag
-
 
313
        EE_Parameter.LoopHysterese = 50;
-
 
314
        EE_Parameter.BitConfig = 0;               // Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts
-
 
315
        EE_Parameter.AchsKopplung1 = 90;
286
        EE_Parameter.AchsKopplung1 = 90;
316
        EE_Parameter.AchsKopplung2 = 80;
287
        EE_Parameter.AchsKopplung2 = 80;
317
        EE_Parameter.CouplingYawCorrection = 70;
288
        EE_Parameter.CouplingYawCorrection = 70;
318
        EE_Parameter.GyroAccAbgleich = 32;        // 1/k
289
        EE_Parameter.GyroAccAbgleich = 32;        // 1/k
319
        EE_Parameter.DynamicStability = 70;
290
        EE_Parameter.DynamicStability = 70;