Rev 1907 | Rev 1915 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1907 | Rev 1913 | ||
---|---|---|---|
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 85 // is count up, if paramater stucture has changed (compatibility) |
7 | #define EEPARAM_REVISION 86 // 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) |
Line 39... | Line 39... | ||
39 | } __attribute__((packed)) MixerTable_t; |
39 | } __attribute__((packed)) MixerTable_t; |
Line 40... | Line 40... | ||
40 | 40 | ||
41 | extern MixerTable_t Mixer; |
41 | extern MixerTable_t Mixer; |
Line -... | Line 42... | ||
- | 42 | extern uint8_t RequiredMotors; |
|
42 | extern uint8_t RequiredMotors; |
43 | |
43 | 44 | //GlobalConfig |
|
44 | #define CFG_HOEHENREGELUNG 0x01 |
45 | #define CFG_HOEHENREGELUNG 0x01 |
45 | #define CFG_HOEHEN_SCHALTER 0x02 |
46 | #define CFG_HOEHEN_SCHALTER 0x02 |
46 | #define CFG_HEADING_HOLD 0x04 |
47 | #define CFG_HEADING_HOLD 0x04 |
47 | #define CFG_KOMPASS_AKTIV 0x08 |
48 | #define CFG_KOMPASS_AKTIV 0x08 |
48 | #define CFG_KOMPASS_FIX 0x10 |
49 | #define CFG_KOMPASS_FIX 0x10 |
49 | #define CFG_GPS_AKTIV 0x20 |
50 | #define CFG_GPS_AKTIV 0x20 |
Line -... | Line 51... | ||
- | 51 | #define CFG_ACHSENKOPPLUNG_AKTIV 0x40 |
|
50 | #define CFG_ACHSENKOPPLUNG_AKTIV 0x40 |
52 | #define CFG_DREHRATEN_BEGRENZER 0x80 |
51 | #define CFG_DREHRATEN_BEGRENZER 0x80 |
53 | |
52 | 54 | //BitConfig |
|
53 | #define CFG_LOOP_OBEN 0x01 |
55 | #define CFG_LOOP_OBEN 0x01 |
54 | #define CFG_LOOP_UNTEN 0x02 |
56 | #define CFG_LOOP_UNTEN 0x02 |
55 | #define CFG_LOOP_LINKS 0x04 |
57 | #define CFG_LOOP_LINKS 0x04 |
56 | #define CFG_LOOP_RECHTS 0x08 |
58 | #define CFG_LOOP_RECHTS 0x08 |
57 | #define CFG_MOTOR_BLINK 0x10 |
59 | #define CFG_MOTOR_BLINK 0x10 |
Line -... | Line 60... | ||
- | 60 | #define CFG_MOTOR_OFF_LED1 0x20 |
|
58 | #define CFG_MOTOR_OFF_LED1 0x20 |
61 | #define CFG_MOTOR_OFF_LED2 0x40 |
59 | #define CFG_MOTOR_OFF_LED2 0x40 |
62 | #define CFG_RES4 0x80 |
60 | #define CFG_RES4 0x80 |
63 | |
61 | 64 | // ExtraConfig |
|
- | 65 | #define CFG2_HEIGHT_LIMIT 0x01 |
|
- | 66 | #define CFG2_VARIO_BEEP 0x02 |
|
- | 67 | #define CFG_SENSITIVE_RC 0x04 |
|
Line 62... | Line 68... | ||
62 | #define CFG2_HEIGHT_LIMIT 0x01 |
68 | #define CFG_3_3V_REFERENCE 0x08 |
63 | #define CFG2_VARIO_BEEP 0x02 |
69 | #define CFG_NO_RCOFF_BEEPING 0x10 |
64 | #define CFG_SENSITIVE_RC 0x04 |
70 | #define CFG_GPS_AID 0x20 |
65 | #define CFG_3_3V_REFERENCE 0x08 |
71 | #define CFG_LEARNABLE_CAREFREE 0x40 |
Line 206... | Line 212... | ||
206 | unsigned char ExternalControl; // for serial Control |
212 | unsigned char ExternalControl; // for serial Control |
207 | //---CareFree--------------------------------------------- |
213 | //---CareFree--------------------------------------------- |
208 | unsigned char OrientationAngle; // Where is the front-direction? |
214 | unsigned char OrientationAngle; // Where is the front-direction? |
209 | unsigned char OrientationModeControl; // switch for CareFree |
215 | unsigned char OrientationModeControl; // switch for CareFree |
210 | unsigned char MotorSafetySwitch; |
216 | unsigned char MotorSafetySwitch; |
- | 217 | unsigned char MotorSmooth; |
|
211 | //------------------------------------------------ |
218 | //------------------------------------------------ |
212 | unsigned char BitConfig; // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
219 | unsigned char BitConfig; // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
213 | unsigned char ServoCompInvert; // // 0x01 = Nick, 0x02 = Roll 0 oder 1 // WICHTIG!!! am Ende lassen |
220 | unsigned char ServoCompInvert; // // 0x01 = Nick, 0x02 = Roll 0 oder 1 // WICHTIG!!! am Ende lassen |
214 | unsigned char ExtraConfig; // bitcodiert |
221 | unsigned char ExtraConfig; // bitcodiert |
215 | char Name[12]; |
222 | char Name[12]; |