Rev 700 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 700 | Rev 701 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | 5 | ||
6 | #define EEPROM_ADR_PARAM_BEGIN 0 |
6 | #define EEPROM_ADR_PARAM_BEGIN 0 |
7 | #define PID_VERSION 1 // byte |
7 | #define PID_VERSION 1 // byte |
8 | #define PID_ACTIVE_SET 2 // byte |
8 | #define PID_ACTIVE_SET 2 // byte |
9 | #define PID_LAST_OFFSET 3 // byte |
9 | #define PID_LAST_OFFSET 3 // byte |
10 | #define PID_ACC_NICK 4 // word |
10 | #define PID_ACC_PITCH 4 // word |
11 | #define PID_ACC_ROLL 6 // word |
11 | #define PID_ACC_ROLL 6 // word |
Line 12... | Line 12... | ||
12 | #define PID_ACC_Z 8 // word |
12 | #define PID_ACC_Z 8 // word |
13 | 13 | ||
Line 36... | Line 36... | ||
36 | #define CFG_LOOP_DOWN 0x02 |
36 | #define CFG_LOOP_DOWN 0x02 |
37 | #define CFG_LOOP_LEFT 0x04 |
37 | #define CFG_LOOP_LEFT 0x04 |
38 | #define CFG_LOOP_RIGHT 0x08 |
38 | #define CFG_LOOP_RIGHT 0x08 |
Line 39... | Line 39... | ||
39 | 39 | ||
40 | // defines for lookup mk_param_struct.ChannelAssignment |
40 | // defines for lookup mk_param_struct.ChannelAssignment |
41 | #define CH_NICK 0 |
41 | #define CH_PITCH 0 |
42 | #define CH_ROLL 1 |
42 | #define CH_ROLL 1 |
43 | #define CH_GAS 2 |
43 | #define CH_GAS 2 |
44 | #define CH_GIER 3 |
44 | #define CH_YAW 3 |
45 | #define CH_POTI1 4 |
45 | #define CH_POTI1 4 |
46 | #define CH_POTI2 5 |
46 | #define CH_POTI2 5 |
47 | #define CH_POTI3 6 |
47 | #define CH_POTI3 6 |
Line 51... | Line 51... | ||
51 | 51 | ||
52 | typedef struct |
52 | typedef struct |
53 | { |
53 | { |
54 | uint8_t ChannelAssignment[8]; // see upper defines for details |
54 | uint8_t ChannelAssignment[8]; // see upper defines for details |
55 | uint8_t GlobalConfig; // see upper defines for bitcoding |
55 | uint8_t GlobalConfig; // see upper defines for bitcoding |
56 | uint8_t Hoehe_MinGas; // Wert : 0-100 |
56 | uint8_t Hight_MinGas; // Wert : 0-100 |
57 | uint8_t Luftdruck_D; // Wert : 0-250 |
57 | uint8_t AirPressure_D; // Wert : 0-250 |
58 | uint8_t MaxHoehe; // Wert : 0-32 |
58 | uint8_t MaxHight; // Wert : 0-32 |
59 | uint8_t Hoehe_P; // Wert : 0-32 |
59 | uint8_t Hight_P; // Wert : 0-32 |
60 | uint8_t Hoehe_Verstaerkung; // Wert : 0-50 |
60 | uint8_t Hight_Gain; // Wert : 0-50 |
61 | uint8_t Hoehe_ACC_Wirkung; // Wert : 0-250 |
61 | uint8_t Hight_ACC_Effect; // Wert : 0-250 |
62 | uint8_t Stick_P; // Wert : 1-6 |
62 | uint8_t Stick_P; // Wert : 1-6 |
63 | uint8_t Stick_D; // Wert : 0-64 |
63 | uint8_t Stick_D; // Wert : 0-64 |
64 | uint8_t Gier_P; // Wert : 1-20 |
64 | uint8_t Yaw_P; // Wert : 1-20 |
65 | uint8_t Gas_Min; // Wert : 0-32 |
65 | uint8_t Gas_Min; // Wert : 0-32 |
66 | uint8_t Gas_Max; // Wert : 33-250 |
66 | uint8_t Gas_Max; // Wert : 33-250 |
67 | uint8_t GyroAccFaktor; // Wert : 1-64 |
67 | uint8_t GyroAccFaktor; // Wert : 1-64 |
68 | uint8_t KompassWirkung; // Wert : 0-32 |
68 | uint8_t CompassYawEffect; // Wert : 0-32 |
69 | uint8_t Gyro_P; // Wert : 10-250 |
69 | uint8_t Gyro_P; // Wert : 10-250 |
70 | uint8_t Gyro_I; // Wert : 0-250 |
70 | uint8_t Gyro_I; // Wert : 0-250 |
71 | uint8_t LowVoltageWarning; // Wert : 0-250 |
71 | uint8_t LowVoltageWarning; // Wert : 0-250 |
72 | uint8_t EmergencyGas; // Wert : 0-250 //Gaswert bei Empängsverlust |
72 | uint8_t EmergencyGas; // Wert : 0-250 //Gaswert bei Empängsverlust |
Line 75... | Line 75... | ||
75 | uint8_t I_Factor; // Wert : 0-250 |
75 | uint8_t I_Factor; // Wert : 0-250 |
76 | uint8_t UserParam1; // Wert : 0-250 |
76 | uint8_t UserParam1; // Wert : 0-250 |
77 | uint8_t UserParam2; // Wert : 0-250 |
77 | uint8_t UserParam2; // Wert : 0-250 |
78 | uint8_t UserParam3; // Wert : 0-250 |
78 | uint8_t UserParam3; // Wert : 0-250 |
79 | uint8_t UserParam4; // Wert : 0-250 |
79 | uint8_t UserParam4; // Wert : 0-250 |
80 | uint8_t ServoNickControl; // Wert : 0-250 // Stellung des Servos |
80 | uint8_t ServoPitchControl; // Wert : 0-250 // Stellung des Servos |
81 | uint8_t ServoNickComp; // Wert : 0-250 // Einfluss Gyro/Servo |
81 | uint8_t ServoPitchComp; // Wert : 0-250 // Einfluss Gyro/Servo |
82 | uint8_t ServoNickMin; // Wert : 0-250 // Anschlag |
82 | uint8_t ServoPitchMin; // Wert : 0-250 // Anschlag |
83 | uint8_t ServoNickMax; // Wert : 0-250 // Anschlag |
83 | uint8_t ServoPitchMax; // Wert : 0-250 // Anschlag |
84 | uint8_t ServoNickRefresh; // |
84 | uint8_t ServoPitchRefresh; // |
85 | uint8_t LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
85 | uint8_t LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
86 | uint8_t LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |
86 | uint8_t LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |
87 | uint8_t LoopHysteresis; // Wert: 0-250 Hysterese für Stickausschlag |
87 | uint8_t LoopHysteresis; // Wert: 0-250 Hysterese für Stickausschlag |
88 | uint8_t AchsKopplung1; // Wert: 0-250 Faktor, mit dem Gier die Achsen Roll und Nick koppelt (NickRollMitkopplung) |
88 | uint8_t AchsKopplung1; // Wert: 0-250 Faktor, mit dem Yaw die Achsen Roll und Pitch koppelt (PitchRollMitkopplung) |
89 | uint8_t AchsGegenKopplung1; // Wert: 0-250 Faktor, mit dem Gier die Achsen Roll und Nick Gegenkoppelt (NickRollGegenkopplung) |
89 | uint8_t AchsGegenKopplung1; // Wert: 0-250 Faktor, mit dem Yaw die Achsen Roll und Pitch Gegenkoppelt (PitchRollGegenkopplung) |
90 | uint8_t WinkelUmschlagNick; // Wert: 0-250 180°-Punkt |
90 | uint8_t AngleTurnOverPitch; // Wert: 0-250 180°-Punkt |
91 | uint8_t WinkelUmschlagRoll; // Wert: 0-250 180°-Punkt |
91 | uint8_t AngleTurnOverRoll; // Wert: 0-250 180°-Punkt |
92 | uint8_t GyroAccAbgleich; // 1/k (Koppel_ACC_Wirkung) |
92 | uint8_t GyroAccTrim; // 1/k (Koppel_ACC_Wirkung) |
93 | uint8_t DriftComp; |
93 | uint8_t DriftComp; |
94 | uint8_t DynamicStability; |
94 | uint8_t DynamicStability; |
95 | uint8_t UserParam5; // Wert : 0-250 |
95 | uint8_t UserParam5; // Wert : 0-250 |
96 | uint8_t UserParam6; // Wert : 0-250 |
96 | uint8_t UserParam6; // Wert : 0-250 |
97 | uint8_t UserParam7; // Wert : 0-250 |
97 | uint8_t UserParam7; // Wert : 0-250 |
98 | uint8_t UserParam8; // Wert : 0-250 |
98 | uint8_t UserParam8; // Wert : 0-250 |
99 | uint8_t LoopConfig; // see upper defines for bitcoding |
99 | uint8_t LoopConfig; // see upper defines for bitcoding |
100 | uint8_t ServoNickCompInvert; // Wert : 0-250 0 oder 1 // WICHTIG!!! am Ende lassen |
100 | uint8_t ServoPitchCompInvert; // Wert : 0-250 0 oder 1 // WICHTIG!!! am Ende lassen |
101 | uint8_t Reserved[4]; |
101 | uint8_t Reserved[4]; |
102 | int8_t Name[12]; |
102 | int8_t Name[12]; |
103 | } paramset_t; |
103 | } paramset_t; |
Line 104... | Line 104... | ||
104 | 104 |