Subversion Repositories Projects

Rev

Rev 2039 | Rev 2075 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2039 Rev 2043
Line 79... Line 79...
79
#define PROCESSED       0x02
79
#define PROCESSED       0x02
Line 80... Line 80...
80
 
80
 
81
/*
81
/*
82
 * NaviCtrl OSD Structs
82
 * NaviCtrl OSD Structs
83
 * portions taken and adapted from
83
 * portions taken and adapted from
84
 * http://svn.mikrokopter.de/filedetails.php?repname=NaviCtrl&path=/tags/V2.04a/uart1.h
84
 * http://svn.mikrokopter.de/filedetails.php?repname=NaviCtrl&path=/tags/V2.06a/uart1.h
85
 */
85
 */
86
typedef struct {
86
typedef struct {
87
    u16 Distance; // distance to target in dm
87
    u16 Distance; // distance to target in dm
88
    s16 Bearing; // course to target in deg
88
    s16 Bearing; // course to target in deg
-
 
89
} __attribute__((packed)) GPS_PosDev_t;
89
} __attribute__((packed)) GPS_PosDev_t;
90
 
Line 90... Line 91...
90
#define NAVIDATA_VERSION 5
91
#define NAVIDATA_VERSION 5
91
 
92
 
92
typedef struct {
93
typedef struct {
Line 165... Line 166...
165
#define DEFEKT_MIXER_ERR    0x10
166
#define DEFEKT_MIXER_ERR    0x10
Line 166... Line 167...
166
 
167
 
167
/*
168
/*
168
 * MikroKopter config struct
169
 * MikroKopter config struct
169
 * portions taken and adapted from
170
 * portions taken and adapted from
170
 * http://svn.mikrokopter.de/filedetails.php?repname=FlightCtrl&path=/tags/V2.04a/eeprom.h
171
 * http://svn.mikrokopter.de/filedetails.php?repname=FlightCtrl&path=/tags/V2.06a/eeprom.h
Line 171... Line 172...
171
 */
172
 */
Line -... Line 173...
-
 
173
 
172
 
174
#define EEPARAM_REVISION        102 // is count up, if paramater stucture has changed (compatibility)
-
 
175
 
173
#define EEPARAM_REVISION         98 // is count up, if paramater stucture has changed (compatibility)
176
 
174
 
177
typedef struct
175
typedef struct {
178
{
176
    unsigned char Revision;
179
        unsigned char Revision;
177
    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
Line 245... Line 248...
245
    unsigned char J17Timing; // for the J17 Output
248
        unsigned char J17Timing;              // for the J17 Output
246
    // seit version V0.75c
249
        // seit version V0.75c
247
    unsigned char WARN_J16_Bitmask; // for the J16 Output
250
        unsigned char WARN_J16_Bitmask;       // for the J16 Output
248
    unsigned char WARN_J17_Bitmask; // for the J17 Output
251
        unsigned char WARN_J17_Bitmask;       // for the J17 Output
249
    //---NaviCtrl---------------------------------------------
252
        //---NaviCtrl---------------------------------------------
250
    unsigned char NaviOut1Parameter; // for the J16 Output
253
        unsigned char AutoPhotoDistance;      // Auto Photo
251
    unsigned char NaviGpsModeChannel; // Parameters for the Naviboard
254
        unsigned char NaviGpsModeChannel;     // Parameters for the Naviboard
252
    unsigned char NaviGpsGain;
255
        unsigned char NaviGpsGain;
253
    unsigned char NaviGpsP;
256
        unsigned char NaviGpsP;
254
    unsigned char NaviGpsI;
257
        unsigned char NaviGpsI;
255
    unsigned char NaviGpsD;
258
        unsigned char NaviGpsD;
Line 259... Line 262...
259
    unsigned char NaviGpsA;
262
        unsigned char NaviGpsA;
260
    unsigned char NaviGpsMinSat;
263
        unsigned char NaviGpsMinSat;
261
    unsigned char NaviStickThreshold;
264
        unsigned char NaviStickThreshold;
262
    unsigned char NaviWindCorrection;
265
        unsigned char NaviWindCorrection;
263
    unsigned char NaviAccCompensation; // New since 0.86 -> was: SpeedCompensation
266
        unsigned char NaviAccCompensation;    // New since 0.86 -> was: SpeedCompensation
264
    unsigned char NaviOperatingRadius;
267
        unsigned char NaviMaxFlyingRange;     // in 10m
265
    unsigned char NaviAngleLimitation;
268
        unsigned char NaviAngleLimitation;
266
    unsigned char NaviPH_LoginTime;
269
        unsigned char NaviPH_LoginTime;
-
 
270
        unsigned char NaviDescendRange;
267
    //---Ext.Ctrl---------------------------------------------
271
        //---Ext.Ctrl---------------------------------------------
268
    unsigned char ExternalControl; // for serial Control
272
        unsigned char ExternalControl;         // for serial Control
269
    //---CareFree---------------------------------------------
273
        //---CareFree---------------------------------------------
270
    unsigned char OrientationAngle; // Where is the front-direction?
274
        unsigned char OrientationAngle;        // Where is the front-direction?
271
    unsigned char CareFreeChannel; // switch for CareFree
275
        unsigned char CareFreeChannel;     // switch for CareFree
Line 275... Line 279...
275
    unsigned char FailSafeTime;
279
    unsigned char FailSafeTime;
276
    unsigned char MaxAltitude;
280
    unsigned char MaxAltitude;
277
    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"
278
    unsigned char ServoFilterNick;
282
        unsigned char ServoFilterNick;  
279
    unsigned char ServoFilterRoll;
283
        unsigned char ServoFilterRoll;  
-
 
284
    unsigned char Servo3OnValue;
-
 
285
    unsigned char Servo3OffValue;
-
 
286
    unsigned char Servo4OnValue;
-
 
287
    unsigned char Servo4OffValue;
280
    unsigned char StartLandChannel;
288
        unsigned char StartLandChannel;  
281
    unsigned char LandingSpeed;
289
        unsigned char LandingSpeed;  
282
    unsigned char CompassOffset;
290
        unsigned char CompassOffset;        
283
    unsigned char AutoLandingVoltage; // in 0,1V  0 -> disabled
291
        unsigned char AutoLandingVoltage;    // in 0,1V  0 -> disabled
284
    unsigned char ComingHomeVoltage; // in 0,1V  0 -> disabled
292
        unsigned char ComingHomeVoltage;    // in 0,1V  0 -> disabled
-
 
293
        unsigned char AutoPhotoAtitudes;
-
 
294
        unsigned char SingleWpSpeed;
285
    //------------------------------------------------
295
        //------------------------------------------------
286
    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
287
    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
288
    unsigned char ExtraConfig; // bitcodiert
298
        unsigned char ExtraConfig;        // bitcodiert
289
    unsigned char GlobalConfig3; // bitcodiert
299
        unsigned char GlobalConfig3;      // bitcodiert