Subversion Repositories Projects

Rev

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

Rev 1866 Rev 1992
Line 41... Line 41...
41
#define NC_ADDRESS 2
41
#define NC_ADDRESS 2
42
#define MK3MAG_ADDRESS 3
42
#define MK3MAG_ADDRESS 3
43
#define MKOSD_ADDRESS 4
43
#define MKOSD_ADDRESS 4
44
#define BL_ADDRESS 5
44
#define BL_ADDRESS 5
45
 
45
 
46
 
-
 
47
/*
46
/*
48
 * FC Debug Struct
47
 * FC Debug Struct
49
 * portions taken and adapted from
48
 * portions taken and adapted from
50
 * http://svn.mikrokopter.de/filedetails.php?repname=FlightCtrl&path=/tags/V0.88e/uart.h
49
 * http://svn.mikrokopter.de/filedetails.php?repname=FlightCtrl&path=/tags/V0.88e/uart.h
51
 */
50
 */
Line 77... Line 76...
77
 
76
 
78
#define INVALID         0x00
77
#define INVALID         0x00
79
#define NEWDATA         0x01
78
#define NEWDATA         0x01
80
#define PROCESSED       0x02
79
#define PROCESSED       0x02
81
 
80
 
82
 
-
 
83
/*
81
/*
84
 * NaviCtrl OSD Structs
82
 * NaviCtrl OSD Structs
85
 * portions taken and adapted from
83
 * portions taken and adapted from
86
 * http://svn.mikrokopter.de/filedetails.php?repname=NaviCtrl&path=/tags/V0.24b/uart1.h
84
 * http://svn.mikrokopter.de/filedetails.php?repname=NaviCtrl&path=/tags/V0.24b/uart1.h
87
 */
85
 */
Line 163... Line 161...
163
#define DEFEKT_BL_MISSING       0x02
161
#define DEFEKT_BL_MISSING       0x02
164
#define DEFEKT_SPI_RX_ERR       0x04
162
#define DEFEKT_SPI_RX_ERR       0x04
165
#define DEFEKT_PPM_ERR          0x08
163
#define DEFEKT_PPM_ERR          0x08
166
#define DEFEKT_MIXER_ERR    0x10
164
#define DEFEKT_MIXER_ERR    0x10
167
 
165
 
168
 
-
 
169
/*
166
/*
170
 * MikroKopter config struct
167
 * MikroKopter config struct
171
 * portions taken and adapted from
168
 * portions taken and adapted from
172
 * http://svn.mikrokopter.de/filedetails.php?repname=FlightCtrl&path=/tags/V0.88e/eeprom.h
169
 * http://svn.mikrokopter.de/filedetails.php?repname=FlightCtrl&path=/tags/V0.90j/eeprom.h
173
 */
170
 */
174
typedef struct {
171
typedef struct {
175
        unsigned char Revision;
172
    unsigned char Revision;
176
        unsigned char Kanalbelegung[12];       // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3
173
    unsigned char Kanalbelegung[12]; // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3
177
        unsigned char GlobalConfig;           // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv
174
    unsigned char GlobalConfig; // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv
Line 244... Line 241...
244
        unsigned char J17Timing;              // for the J17 Output
241
    unsigned char J17Timing; // for the J17 Output
245
        // seit version V0.75c
242
    // seit version V0.75c
246
        unsigned char WARN_J16_Bitmask;       // for the J16 Output
243
    unsigned char WARN_J16_Bitmask; // for the J16 Output
247
        unsigned char WARN_J17_Bitmask;       // for the J17 Output
244
    unsigned char WARN_J17_Bitmask; // for the J17 Output
248
        //---NaviCtrl---------------------------------------------
245
    //---NaviCtrl---------------------------------------------
-
 
246
    unsigned char NaviOut1Parameter; // for the J16 Output
249
        unsigned char NaviGpsModeControl;     // Parameters for the Naviboard
247
    unsigned char NaviGpsModeControl; // Parameters for the Naviboard
250
        unsigned char NaviGpsGain;
248
    unsigned char NaviGpsGain;
251
        unsigned char NaviGpsP;
249
    unsigned char NaviGpsP;
252
        unsigned char NaviGpsI;
250
    unsigned char NaviGpsI;
253
        unsigned char NaviGpsD;
251
    unsigned char NaviGpsD;
Line 275... Line 273...
275
                unsigned char FailsafeChannel;         // if the value of this channel is > 100, the MK reports "RC-Lost"
273
    unsigned char FailsafeChannel; // if the value of this channel is > 100, the MK reports "RC-Lost"
276
                unsigned char ServoFilterNick;  
274
    unsigned char ServoFilterNick;
277
                unsigned char ServoFilterRoll;                 
275
    unsigned char ServoFilterRoll;
278
        //------------------------------------------------
276
    //------------------------------------------------
279
        unsigned char BitConfig;          // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt
277
    unsigned char BitConfig; // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt
280
        unsigned char ServoCompInvert;    // //  0x01 = Nick, 0x02 = Roll   0 oder 1  // WICHTIG!!! am Ende lassen
278
    unsigned char ServoCompInvert; // //  0x01 = Nick, 0x02 = Roll, 0x04 = relative moving // WICHTIG!!! am Ende lassen
281
        unsigned char ExtraConfig;        // bitcodiert
279
    unsigned char ExtraConfig; // bitcodiert
282
                unsigned char GlobalConfig3;      // bitcodiert         
280
    unsigned char GlobalConfig3; // bitcodiert
283
        char Name[12];
281
    char Name[12];
284
        unsigned char crc;                                // must be the last byte!
282
    unsigned char crc; // must be the last byte!
285
} __attribute__((packed)) paramset_t;
283
} paramset_t;
286
 
284
 
287
typedef struct {
285
typedef struct {
288
        u8 SettingsIndex;
286
    u8 SettingsIndex;
289
        paramset_t param;
287
    paramset_t param;
290
} __attribute__((packed)) paramset_serial;
288
} __attribute__((packed)) paramset_serial;
291
 
289
 
292
 
-
 
293
 
-
 
294
/*
290
/*
295
 * MikroKopter 3D-Data struct
291
 * MikroKopter 3D-Data struct
296
 * portions taken and adapted from
292
 * portions taken and adapted from
297
 * http://svn.mikrokopter.de/filedetails.php?repname=NaviCtrl&path=%2Ftags%2FV0.28o%2Fuart1.h
293
 * http://svn.mikrokopter.de/filedetails.php?repname=NaviCtrl&path=%2Ftags%2FV0.28o%2Fuart1.h
298
 */
294
 */