Subversion Repositories Projects

Rev

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

Rev 2043 Rev 2075
Line 166... Line 166...
166
#define DEFEKT_MIXER_ERR    0x10
166
#define DEFEKT_MIXER_ERR    0x10
Line 167... Line 167...
167
 
167
 
168
/*
168
/*
169
 * MikroKopter config struct
169
 * MikroKopter config struct
170
 * portions taken and adapted from
170
 * portions taken and adapted from
171
 * http://svn.mikrokopter.de/filedetails.php?repname=FlightCtrl&path=/tags/V2.06a/eeprom.h
171
 * http://svn.mikrokopter.de/filedetails.php?repname=FlightCtrl&path=/tags/V2.08a/eeprom.h
Line 172... Line 172...
172
 */
172
 */
Line 173... Line 173...
173
 
173
 
174
#define EEPARAM_REVISION        102 // is count up, if paramater stucture has changed (compatibility)
174
#define EEPARAM_REVISION        103 // is count up, if paramater stucture has changed (compatibility)
175
 
175
 
176
 
176
 
177
typedef struct
177
typedef struct
178
{
178
{
179
        unsigned char Revision;
179
        unsigned char Revision;
180
        unsigned char Kanalbelegung[12];       // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3
180
        unsigned char Kanalbelegung[12];       // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3
181
        unsigned char GlobalConfig;           // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv
181
        unsigned char GlobalConfig;           // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv
182
        unsigned char Hoehe_MinGas;           // Wert : 0-100
182
        unsigned char Hoehe_MinGas;           // Wert : 0-100
183
        unsigned char Luftdruck_D;            // Wert : 0-250
183
        unsigned char Luftdruck_D;            // Wert : 0-250
184
        unsigned char HoeheChannel;           // Wert : 0-32
184
        unsigned char HoeheChannel;           // Wert : 0-32
185
        unsigned char Hoehe_P;                // Wert : 0-32
185
        unsigned char Hoehe_P;                // Wert : 0-32
186
        unsigned char Hoehe_Verstaerkung;     // Wert : 0-50
186
        unsigned char Hoehe_Verstaerkung;     // Wert : 0-50
187
        unsigned char Hoehe_ACC_Wirkung;      // Wert : 0-250
187
        unsigned char Hoehe_ACC_Wirkung;      // Wert : 0-250
188
        unsigned char Hoehe_HoverBand;        // Wert : 0-250
188
        unsigned char Hoehe_HoverBand;        // Wert : 0-250
189
        unsigned char Hoehe_GPS_Z;            // Wert : 0-250
189
        unsigned char Hoehe_TiltCompensation; // Wert : 0-250
190
        unsigned char Hoehe_StickNeutralPoint;// Wert : 0-250
190
        unsigned char Hoehe_StickNeutralPoint;// Wert : 0-250
191
        unsigned char Stick_P;                // Wert : 1-6
191
        unsigned char Stick_P;                // Wert : 1-6
192
        unsigned char Stick_D;                // Wert : 0-64
192
        unsigned char Stick_D;                // Wert : 0-64
193
        unsigned char StickGier_P;            // Wert : 1-20
193
        unsigned char StickGier_P;            // Wert : 1-20
194
        unsigned char Gas_Min;                // Wert : 0-32
194
        unsigned char Gas_Min;                // Wert : 0-32
195
        unsigned char Gas_Max;                // Wert : 33-250
195
        unsigned char Gas_Max;                // Wert : 33-250
196
        unsigned char GyroAccFaktor;          // Wert : 1-64
196
        unsigned char GyroAccFaktor;          // Wert : 1-64
197
        unsigned char KompassWirkung;         // Wert : 0-32
197
        unsigned char KompassWirkung;         // Wert : 0-32
198
        unsigned char Gyro_P;                 // Wert : 10-250
198
        unsigned char Gyro_P;                 // Wert : 10-250
199
        unsigned char Gyro_I;                 // Wert : 0-250
199
        unsigned char Gyro_I;                 // Wert : 0-250
200
        unsigned char Gyro_D;                 // Wert : 0-250
200
        unsigned char Gyro_D;                 // Wert : 0-250
201
        unsigned char Gyro_Gier_P;            // Wert : 10-250
201
        unsigned char Gyro_Gier_P;            // Wert : 10-250
202
        unsigned char Gyro_Gier_I;            // Wert : 0-250
202
        unsigned char Gyro_Gier_I;            // Wert : 0-250
203
        unsigned char Gyro_Stability;         // Wert : 0-16
203
        unsigned char Gyro_Stability;         // Wert : 0-16
204
        unsigned char UnterspannungsWarnung;  // Wert : 0-250
204
        unsigned char UnterspannungsWarnung;  // Wert : 0-250
205
        unsigned char NotGas;                 // Wert : 0-250     //Gaswert bei Empängsverlust
205
        unsigned char NotGas;                 // Wert : 0-250     //Gaswert bei Empängsverlust
206
        unsigned char NotGasZeit;             // Wert : 0-250     // Zeitbis auf NotGas geschaltet wird, wg. Rx-Problemen
206
        unsigned char NotGasZeit;             // Wert : 0-250     // Zeitbis auf NotGas geschaltet wird, wg. Rx-Problemen
207
        unsigned char Receiver;                   // 0= Summensignal, 1= Spektrum, 2 =Jeti, 3=ACT DSL, 4=ACT S3D
207
        unsigned char Receiver;                   // 0= Summensignal, 1= Spektrum, 2 =Jeti, 3=ACT DSL, 4=ACT S3D
208
        unsigned char I_Faktor;               // Wert : 0-250
208
        unsigned char I_Faktor;               // Wert : 0-250
209
        unsigned char UserParam1;             // Wert : 0-250
209
        unsigned char UserParam1;             // Wert : 0-250
210
        unsigned char UserParam2;             // Wert : 0-250
210
        unsigned char UserParam2;             // Wert : 0-250
211
        unsigned char UserParam3;             // Wert : 0-250
211
        unsigned char UserParam3;             // Wert : 0-250
212
        unsigned char UserParam4;             // Wert : 0-250
212
        unsigned char UserParam4;             // Wert : 0-250
213
        unsigned char ServoNickControl;       // Wert : 0-250     // Stellung des Servos
213
        unsigned char ServoNickControl;       // Wert : 0-250     // Stellung des Servos
214
        unsigned char ServoNickComp;          // Wert : 0-250     // Einfluss Gyro/Servo
214
        unsigned char ServoNickComp;          // Wert : 0-250     // Einfluss Gyro/Servo
215
        unsigned char ServoNickMin;           // Wert : 0-250     // Anschlag
215
        unsigned char ServoNickMin;           // Wert : 0-250     // Anschlag
216
        unsigned char ServoNickMax;           // Wert : 0-250     // Anschlag
216
        unsigned char ServoNickMax;           // Wert : 0-250     // Anschlag
217
        //--- Seit V0.75
217
        //--- Seit V0.75
218
        unsigned char ServoRollControl;       // Wert : 0-250     // Stellung des Servos
218
        unsigned char ServoRollControl;       // Wert : 0-250     // Stellung des Servos
219
        unsigned char ServoRollComp;          // Wert : 0-250
219
        unsigned char ServoRollComp;          // Wert : 0-250
220
        unsigned char ServoRollMin;           // Wert : 0-250
220
        unsigned char ServoRollMin;           // Wert : 0-250
221
        unsigned char ServoRollMax;           // Wert : 0-250
221
        unsigned char ServoRollMax;           // Wert : 0-250
222
        //---
222
        //---
223
        unsigned char ServoNickRefresh;       // Speed of the Servo
223
        unsigned char ServoNickRefresh;       // Speed of the Servo
224
    unsigned char ServoManualControlSpeed;//
224
    unsigned char ServoManualControlSpeed;//
225
    unsigned char CamOrientation;         //
225
    unsigned char CamOrientation;         //
226
        unsigned char Servo3;                    // Value or mapping of the Servo Output
226
        unsigned char Servo3;                    // Value or mapping of the Servo Output
227
        unsigned char Servo4;                            // Value or mapping of the Servo Output
227
        unsigned char Servo4;                            // Value or mapping of the Servo Output
228
        unsigned char Servo5;                            // Value or mapping of the Servo Output
228
        unsigned char Servo5;                            // Value or mapping of the Servo Output
229
        unsigned char LoopGasLimit;           // Wert: 0-250  max. Gas während Looping
229
        unsigned char LoopGasLimit;           // Wert: 0-250  max. Gas während Looping
230
        unsigned char LoopThreshold;          // Wert: 0-250  Schwelle für Stickausschlag
230
        unsigned char LoopThreshold;          // Wert: 0-250  Schwelle für Stickausschlag
231
        unsigned char LoopHysterese;          // Wert: 0-250  Hysterese für Stickausschlag
231
        unsigned char LoopHysterese;          // Wert: 0-250  Hysterese für Stickausschlag
232
        unsigned char AchsKopplung1;          // Wert: 0-250  Faktor, mit dem Gier die Achsen Roll und Nick koppelt (NickRollMitkopplung)
232
        unsigned char AchsKopplung1;          // Wert: 0-250  Faktor, mit dem Gier die Achsen Roll und Nick koppelt (NickRollMitkopplung)
233
        unsigned char AchsKopplung2;          // Wert: 0-250  Faktor, mit dem Nick und Roll verkoppelt werden
233
        unsigned char AchsKopplung2;          // Wert: 0-250  Faktor, mit dem Nick und Roll verkoppelt werden
234
        unsigned char CouplingYawCorrection;  // Wert: 0-250  Faktor, mit dem Nick und Roll verkoppelt werden
234
        unsigned char CouplingYawCorrection;  // Wert: 0-250  Faktor, mit dem Nick und Roll verkoppelt werden
235
        unsigned char WinkelUmschlagNick;     // Wert: 0-250  180°-Punkt
235
        unsigned char WinkelUmschlagNick;     // Wert: 0-250  180°-Punkt
236
        unsigned char WinkelUmschlagRoll;     // Wert: 0-250  180°-Punkt
236
        unsigned char WinkelUmschlagRoll;     // Wert: 0-250  180°-Punkt
237
        unsigned char GyroAccAbgleich;        // 1/k  (Koppel_ACC_Wirkung)
237
        unsigned char GyroAccAbgleich;        // 1/k  (Koppel_ACC_Wirkung)
238
        unsigned char Driftkomp;
238
        unsigned char Driftkomp;
239
        unsigned char DynamicStability;
239
        unsigned char DynamicStability;
240
        unsigned char UserParam5;             // Wert : 0-250
240
        unsigned char UserParam5;             // Wert : 0-250
241
        unsigned char UserParam6;             // Wert : 0-250
241
        unsigned char UserParam6;             // Wert : 0-250
242
        unsigned char UserParam7;             // Wert : 0-250
242
        unsigned char UserParam7;             // Wert : 0-250
243
        unsigned char UserParam8;             // Wert : 0-250
243
        unsigned char UserParam8;             // Wert : 0-250
244
        //---Output ---------------------------------------------
244
        //---Output ---------------------------------------------
245
        unsigned char J16Bitmask;             // for the J16 Output
245
        unsigned char J16Bitmask;             // for the J16 Output
246
        unsigned char J16Timing;              // for the J16 Output
246
        unsigned char J16Timing;              // for the J16 Output
247
        unsigned char J17Bitmask;             // for the J17 Output
247
        unsigned char J17Bitmask;             // for the J17 Output
248
        unsigned char J17Timing;              // for the J17 Output
248
        unsigned char J17Timing;              // for the J17 Output
249
        // seit version V0.75c
249
        // seit version V0.75c
250
        unsigned char WARN_J16_Bitmask;       // for the J16 Output
250
        unsigned char WARN_J16_Bitmask;       // for the J16 Output
251
        unsigned char WARN_J17_Bitmask;       // for the J17 Output
251
        unsigned char WARN_J17_Bitmask;       // for the J17 Output
252
        //---NaviCtrl---------------------------------------------
252
        //---NaviCtrl---------------------------------------------
253
        unsigned char AutoPhotoDistance;      // Auto Photo
253
        unsigned char AutoPhotoDistance;      // Auto Photo
254
        unsigned char NaviGpsModeChannel;     // Parameters for the Naviboard
254
        unsigned char NaviGpsModeChannel;     // Parameters for the Naviboard
255
        unsigned char NaviGpsGain;
255
        unsigned char NaviGpsGain;
256
        unsigned char NaviGpsP;
256
        unsigned char NaviGpsP;
257
        unsigned char NaviGpsI;
257
        unsigned char NaviGpsI;
258
        unsigned char NaviGpsD;
258
        unsigned char NaviGpsD;
259
        unsigned char NaviGpsPLimit;
259
        unsigned char NaviGpsPLimit;
260
        unsigned char NaviGpsILimit;
260
        unsigned char NaviGpsILimit;
261
        unsigned char NaviGpsDLimit;
261
        unsigned char NaviGpsDLimit;
262
        unsigned char NaviGpsA;
262
        unsigned char NaviGpsA;
263
        unsigned char NaviGpsMinSat;
263
        unsigned char NaviGpsMinSat;
264
        unsigned char NaviStickThreshold;
264
        unsigned char NaviStickThreshold;
265
        unsigned char NaviWindCorrection;
265
        unsigned char NaviWindCorrection;
266
        unsigned char NaviAccCompensation;    // New since 0.86 -> was: SpeedCompensation
266
        unsigned char NaviAccCompensation;    // New since 0.86 -> was: SpeedCompensation
267
        unsigned char NaviMaxFlyingRange;     // in 10m
267
        unsigned char NaviMaxFlyingRange;     // in 10m
268
        unsigned char NaviAngleLimitation;
268
        unsigned char NaviAngleLimitation;
269
        unsigned char NaviPH_LoginTime;
269
        unsigned char NaviPH_LoginTime;
270
        unsigned char NaviDescendRange;
270
        unsigned char NaviDescendRange;
271
        //---Ext.Ctrl---------------------------------------------
271
        //---Ext.Ctrl---------------------------------------------
272
        unsigned char ExternalControl;         // for serial Control
272
        unsigned char ExternalControl;         // for serial Control
273
        //---CareFree---------------------------------------------
273
        //---CareFree---------------------------------------------
274
        unsigned char OrientationAngle;        // Where is the front-direction?
274
        unsigned char OrientationAngle;        // Where is the front-direction?
275
        unsigned char CareFreeChannel;     // switch for CareFree
275
        unsigned char CareFreeChannel;     // switch for CareFree
276
    unsigned char MotorSafetySwitch;
276
    unsigned char MotorSafetySwitch;
277
    unsigned char MotorSmooth;
277
    unsigned char MotorSmooth;
278
    unsigned char ComingHomeAltitude;
278
    unsigned char ComingHomeAltitude;
279
    unsigned char FailSafeTime;
279
    unsigned char FailSafeTime;
280
    unsigned char MaxAltitude;
280
    unsigned char MaxAltitude;
281
        unsigned char FailsafeChannel;         // if the value of this channel is > 100, the MK reports "RC-Lost"
281
        unsigned char FailsafeChannel;         // if the value of this channel is > 100, the MK reports "RC-Lost"
282
        unsigned char ServoFilterNick;  
282
        unsigned char ServoFilterNick;  
283
        unsigned char ServoFilterRoll;  
283
        unsigned char ServoFilterRoll;  
284
    unsigned char Servo3OnValue;
284
    unsigned char Servo3OnValue;
285
    unsigned char Servo3OffValue;
285
    unsigned char Servo3OffValue;
286
    unsigned char Servo4OnValue;
286
    unsigned char Servo4OnValue;
287
    unsigned char Servo4OffValue;
287
    unsigned char Servo4OffValue;
288
        unsigned char StartLandChannel;  
288
        unsigned char StartLandChannel;  
289
        unsigned char LandingSpeed;  
289
        unsigned char LandingSpeed;  
290
        unsigned char CompassOffset;        
290
        unsigned char CompassOffset;        
291
        unsigned char AutoLandingVoltage;    // in 0,1V  0 -> disabled
291
        unsigned char AutoLandingVoltage;    // in 0,1V  0 -> disabled
292
        unsigned char ComingHomeVoltage;    // in 0,1V  0 -> disabled
292
        unsigned char ComingHomeVoltage;    // in 0,1V  0 -> disabled
293
        unsigned char AutoPhotoAtitudes;
293
        unsigned char AutoPhotoAtitudes;
294
        unsigned char SingleWpSpeed;
294
        unsigned char SingleWpSpeed;
295
        //------------------------------------------------
295
        //------------------------------------------------
296
        unsigned char BitConfig;          // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt
296
        unsigned char BitConfig;          // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt
297
        unsigned char ServoCompInvert;    // //  0x01 = Nick, 0x02 = Roll, 0x04 = relative moving // WICHTIG!!! am Ende lassen
297
        unsigned char ServoCompInvert;    // //  0x01 = Nick, 0x02 = Roll, 0x04 = relative moving // WICHTIG!!! am Ende lassen
298
        unsigned char ExtraConfig;        // bitcodiert
298
        unsigned char ExtraConfig;        // bitcodiert
-
 
299
        unsigned char GlobalConfig3;      // bitcodiert
Line 299... Line 300...
299
        unsigned char GlobalConfig3;      // bitcodiert
300
        char Name[12];
300
        char Name[12];
301
        unsigned char crc;                                // must be the last byte!
301
        unsigned char crc;                                // must be the last byte!
302
} paramset_t; // 134 bytes (V1.06)
302
} paramset_t; // 127 bytes
303