Subversion Repositories FlightCtrl

Rev

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

Rev 1945 Rev 2008
Line 2... Line 2...
2
#define _EEPROM_H
2
#define _EEPROM_H
Line 3... Line 3...
3
 
3
 
4
#include <inttypes.h>
4
#include <inttypes.h>
Line 5... Line 5...
5
#include "twimaster.h"
5
#include "twimaster.h"
6
 
6
 
Line 7... Line 7...
7
#define EEPARAM_REVISION        88 // is count up, if paramater stucture has changed (compatibility)
7
#define EEPARAM_REVISION        89 // is count up, if paramater stucture has changed (compatibility)
8
#define EEMIXER_REVISION         1 // is count up, if mixer stucture has changed (compatibility)
8
#define EEMIXER_REVISION         1 // is count up, if mixer stucture has changed (compatibility)
9
 
9
 
Line 38... Line 38...
38
} __attribute__((packed)) MixerTable_t;
38
} __attribute__((packed)) MixerTable_t;
Line 39... Line 39...
39
 
39
 
40
extern MixerTable_t Mixer;
40
extern MixerTable_t Mixer;
Line -... Line 41...
-
 
41
extern uint8_t RequiredMotors;
-
 
42
 
-
 
43
//GlobalConfig3
-
 
44
#define CFG3_NO_SDCARD_NO_START  0x01
-
 
45
#define CFG3_DPH_MAX_RADIUS      0x02
41
extern uint8_t RequiredMotors;
46
#define CFG3_VARIO_FAILSAFE      0x04
42
 
47
 
43
//GlobalConfig
48
//GlobalConfig
44
#define CFG_HOEHENREGELUNG       0x01
49
#define CFG_HOEHENREGELUNG       0x01
45
#define CFG_HOEHEN_SCHALTER      0x02
50
#define CFG_HOEHEN_SCHALTER      0x02
Line 216... Line 221...
216
    unsigned char MotorSafetySwitch;
221
    unsigned char MotorSafetySwitch;
217
    unsigned char MotorSmooth;
222
    unsigned char MotorSmooth;
218
    unsigned char ComingHomeAltitude;
223
    unsigned char ComingHomeAltitude;
219
    unsigned char FailSafeTime;
224
    unsigned char FailSafeTime;
220
    unsigned char MaxAltitude;
225
    unsigned char MaxAltitude;
-
 
226
        unsigned char FailsafeChannel;         // if the value of this channel is > 100, the MK reports "RC-Lost"
221
        //------------------------------------------------
227
        //------------------------------------------------
222
        unsigned char BitConfig;          // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt
228
        unsigned char BitConfig;          // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt
223
        unsigned char ServoCompInvert;    // //  0x01 = Nick, 0x02 = Roll   0 oder 1  // WICHTIG!!! am Ende lassen
229
        unsigned char ServoCompInvert;    // //  0x01 = Nick, 0x02 = Roll   0 oder 1  // WICHTIG!!! am Ende lassen
224
        unsigned char ExtraConfig;        // bitcodiert
230
        unsigned char ExtraConfig;        // bitcodiert
-
 
231
        unsigned char GlobalConfig3;      // bitcodiert
225
        char Name[12];
232
        char Name[12];
226
        unsigned char crc;                                // must be the last byte!
233
        unsigned char crc;                                // must be the last byte!
227
} paramset_t;
234
} paramset_t;
Line 228... Line 235...
228
 
235