Rev 801 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 801 | Rev 904 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | #define MK_DATATYPES_H |
20 | #define MK_DATATYPES_H |
Line 21... | Line 21... | ||
21 | 21 | ||
Line 22... | Line 22... | ||
22 | #include <stdint.h> |
22 | #include <stdint.h> |
23 | 23 | ||
24 | #ifdef _BETA_ |
24 | #ifdef _BETA_ |
25 | static const int MK_VERSION_SETTINGS = 84; // wird angepasst, wenn sich die EEPROM-Daten ge�ndert haben |
25 | static const int MK_VERSION_SETTINGS = 85; // wird angepasst, wenn sich die EEPROM-Daten ge�ndert haben |
26 | #else |
26 | #else |
Line 27... | Line 27... | ||
27 | static const int MK_VERSION_SETTINGS = 84; // wird angepasst, wenn sich die EEPROM-Daten ge�ndert haben |
27 | static const int MK_VERSION_SETTINGS = 85; // wird angepasst, wenn sich die EEPROM-Daten ge�ndert haben |
Line 28... | Line 28... | ||
28 | #endif |
28 | #endif |
Line 86... | Line 86... | ||
86 | #define CFG_RES4 0x80 |
86 | #define CFG_RES4 0x80 |
Line 87... | Line 87... | ||
87 | 87 | ||
88 | #define CFG2_HEIGHT_LIMIT 0x01 |
88 | #define CFG2_HEIGHT_LIMIT 0x01 |
89 | #define CFG2_VARIO_BEEP 0x02 |
89 | #define CFG2_VARIO_BEEP 0x02 |
- | 90 | #define CFG_SENSITIVE_RC 0x04 |
|
Line 90... | Line 91... | ||
90 | #define CFG_SENSITIVE_RC 0x04 |
91 | #define CFG_3_3V_REFERENCE 0x08 |
91 | 92 | ||
92 | #define CFG0_AIRPRESS_SENSOR 0x01 |
93 | #define CFG0_AIRPRESS_SENSOR 0x01 |
93 | #define CFG0_HEIGHT_SWITCH 0x02 |
94 | #define CFG0_HEIGHT_SWITCH 0x02 |
Line 138... | Line 139... | ||
138 | 139 | ||
139 | 140 | ||
140 | struct s_MK_Settings |
141 | struct s_MK_Settings |
141 | { |
142 | { |
Line 142... | Line 143... | ||
142 | // Die ersten beiden Bytes nicht an den MK senden. |
143 | // Die ersten beiden Bytes nicht an den MK senden. |
143 | unsigned char Index; |
144 | unsigned char Index; |
144 | 145 | ||
145 | unsigned char Revision; |
146 | unsigned char Revision; |
146 | unsigned char Kanalbelegung[12]; // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3 |
147 | unsigned char Kanalbelegung[12]; // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3 |
147 | unsigned char GlobalConfig; // 0x01=H�henregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv |
148 | unsigned char GlobalConfig; // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv |
148 | unsigned char Hoehe_MinGas; // Wert : 0-100 |
149 | unsigned char Hoehe_MinGas; // Wert : 0-100 |
149 | unsigned char Luftdruck_D; // Wert : 0-250 |
150 | unsigned char Luftdruck_D; // Wert : 0-250 |
150 | unsigned char MaxHoehe; // Wert : 0-32 |
151 | unsigned char MaxHoehe; // Wert : 0-32 |
151 | unsigned char Hoehe_P; // Wert : 0-32 |
152 | unsigned char Hoehe_P; // Wert : 0-32 |
152 | unsigned char Hoehe_Verstaerkung; // Wert : 0-50 |
153 | unsigned char Hoehe_Verstaerkung; // Wert : 0-50 |
153 | unsigned char Hoehe_ACC_Wirkung; // Wert : 0-250 |
154 | unsigned char Hoehe_ACC_Wirkung; // Wert : 0-250 |
154 | unsigned char Hoehe_HoverBand; // Wert : 0-250 |
155 | unsigned char Hoehe_HoverBand; // Wert : 0-250 |
155 | unsigned char Hoehe_GPS_Z; // Wert : 0-250 |
156 | unsigned char Hoehe_GPS_Z; // Wert : 0-250 |
156 | unsigned char Hoehe_StickNeutralPoint;// Wert : 0-250 |
157 | unsigned char Hoehe_StickNeutralPoint;// Wert : 0-250 |
157 | unsigned char Stick_P; // Wert : 1-6 |
158 | unsigned char Stick_P; // Wert : 1-6 |
158 | unsigned char Stick_D; // Wert : 0-64 |
159 | unsigned char Stick_D; // Wert : 0-64 |
159 | unsigned char Gier_P; // Wert : 1-20 |
160 | unsigned char Gier_P; // Wert : 1-20 |
160 | unsigned char Gas_Min; // Wert : 0-32 |
161 | unsigned char Gas_Min; // Wert : 0-32 |
161 | unsigned char Gas_Max; // Wert : 33-250 |
162 | unsigned char Gas_Max; // Wert : 33-250 |
162 | unsigned char GyroAccFaktor; // Wert : 1-64 |
163 | unsigned char GyroAccFaktor; // Wert : 1-64 |
163 | unsigned char KompassWirkung; // Wert : 0-32 |
164 | unsigned char KompassWirkung; // Wert : 0-32 |
164 | unsigned char Gyro_P; // Wert : 10-250 |
165 | unsigned char Gyro_P; // Wert : 10-250 |
165 | unsigned char Gyro_I; // Wert : 0-250 |
166 | unsigned char Gyro_I; // Wert : 0-250 |
166 | unsigned char Gyro_D; // Wert : 0-250 |
167 | unsigned char Gyro_D; // Wert : 0-250 |
167 | unsigned char Gyro_Gier_P; // Wert : 10-250 |
168 | unsigned char Gyro_Gier_P; // Wert : 10-250 |
168 | unsigned char Gyro_Gier_I; // Wert : 0-250 |
169 | unsigned char Gyro_Gier_I; // Wert : 0-250 |
169 | unsigned char Gyro_Stability; // 0.80 Wert : 0-16 |
170 | unsigned char Gyro_Stability; // Wert : 0-16 |
170 | unsigned char UnterspannungsWarnung; // Wert : 0-250 |
171 | unsigned char UnterspannungsWarnung; // Wert : 0-250 |
171 | unsigned char NotGas; // Wert : 0-250 //Gaswert bei Emp�ngsverlust |
172 | unsigned char NotGas; // Wert : 0-250 //Gaswert bei Empängsverlust |
172 | unsigned char NotGasZeit; // Wert : 0-250 // Zeitbis auf NotGas geschaltet wird, wg. Rx-Problemen |
173 | unsigned char NotGasZeit; // Wert : 0-250 // Zeitbis auf NotGas geschaltet wird, wg. Rx-Problemen |
173 | unsigned char Receiver; // 0= Summensignal, 1= Spektrum, 2 =Jeti, 3=ACT DSL, 4=ACT S3D |
174 | unsigned char Receiver; // 0= Summensignal, 1= Spektrum, 2 =Jeti, 3=ACT DSL, 4=ACT S3D |
174 | unsigned char I_Faktor; // Wert : 0-250 |
175 | unsigned char I_Faktor; // Wert : 0-250 |
175 | unsigned char UserParam1; // Wert : 0-250 |
176 | unsigned char UserParam1; // Wert : 0-250 |
176 | unsigned char UserParam2; // Wert : 0-250 |
177 | unsigned char UserParam2; // Wert : 0-250 |
177 | unsigned char UserParam3; // Wert : 0-250 |
178 | unsigned char UserParam3; // Wert : 0-250 |
178 | unsigned char UserParam4; // Wert : 0-250 |
179 | unsigned char UserParam4; // Wert : 0-250 |
179 | unsigned char ServoNickControl; // Wert : 0-250 // Stellung des Servos |
180 | unsigned char ServoNickControl; // Wert : 0-250 // Stellung des Servos |
- | 181 | unsigned char ServoNickComp; // Wert : 0-250 // Einfluss Gyro/Servo |
|
180 | unsigned char ServoNickComp; // Wert : 0-250 // Einfluss Gyro/Servo |
182 | unsigned char ServoNickMin; // Wert : 0-250 // Anschlag |
181 | unsigned char ServoNickMin; // Wert : 0-250 // Anschlag |
183 | unsigned char ServoNickMax; // Wert : 0-250 // Anschlag |
182 | unsigned char ServoNickMax; // Wert : 0-250 // Anschlag |
184 | //--- Seit V0.75 |
183 | unsigned char ServoRollControl; // 0.75 Wert : 0-250 // Stellung des Servos |
185 | unsigned char ServoRollControl; // Wert : 0-250 // Stellung des Servos |
- | 186 | unsigned char ServoRollComp; // Wert : 0-250 |
|
184 | unsigned char ServoRollComp; // 0.75 Wert : 0-250 |
187 | unsigned char ServoRollMin; // Wert : 0-250 |
- | 188 | unsigned char ServoRollMax; // Wert : 0-250 |
|
- | 189 | //--- |
|
185 | unsigned char ServoRollMin; // 0.75 Wert : 0-250 |
190 | unsigned char ServoNickRefresh; // Speed of the Servo |
186 | unsigned char ServoRollMax; // 0.75 Wert : 0-250 |
191 | unsigned char ServoManualControlSpeed;// |
187 | unsigned char ServoNickRefresh; // Speed of the Servo |
192 | unsigned char CamOrientation; // |
188 | unsigned char Servo3; // Value or mapping of the Servo Output |
193 | unsigned char Servo3; // Value or mapping of the Servo Output |
189 | unsigned char Servo4; // Value or mapping of the Servo Output |
194 | unsigned char Servo4; // Value or mapping of the Servo Output |
190 | unsigned char Servo5; // Value or mapping of the Servo Output |
195 | unsigned char Servo5; // Value or mapping of the Servo Output |
191 | unsigned char LoopGasLimit; // Wert: 0-250 max. Gas w�hrend Looping |
196 | unsigned char LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
192 | unsigned char LoopThreshold; // Wert: 0-250 Schwelle f�r Stickausschlag |
197 | unsigned char LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |
193 | unsigned char LoopHysterese; // Wert: 0-250 Hysterese f�r Stickausschlag |
198 | unsigned char LoopHysterese; // Wert: 0-250 Hysterese für Stickausschlag |
194 | unsigned char AchsKopplung1; // Wert: 0-250 Faktor, mit dem Gier die Achsen Roll und Nick koppelt (NickRollMitkopplung) |
199 | unsigned char AchsKopplung1; // Wert: 0-250 Faktor, mit dem Gier die Achsen Roll und Nick koppelt (NickRollMitkopplung) |
195 | unsigned char AchsKopplung2; // Wert: 0-250 Faktor, mit dem Nick und Roll verkoppelt werden |
200 | unsigned char AchsKopplung2; // Wert: 0-250 Faktor, mit dem Nick und Roll verkoppelt werden |
196 | unsigned char CouplingYawCorrection; // Wert: 0-250 Faktor, mit dem Nick und Roll verkoppelt werden |
201 | unsigned char CouplingYawCorrection; // Wert: 0-250 Faktor, mit dem Nick und Roll verkoppelt werden |
197 | unsigned char WinkelUmschlagNick; // Wert: 0-250 180�-Punkt |
202 | unsigned char WinkelUmschlagNick; // Wert: 0-250 180°-Punkt |
198 | unsigned char WinkelUmschlagRoll; // Wert: 0-250 180�-Punkt |
203 | unsigned char WinkelUmschlagRoll; // Wert: 0-250 180°-Punkt |
199 | unsigned char GyroAccAbgleich; // 1/k (Koppel_ACC_Wirkung) |
204 | unsigned char GyroAccAbgleich; // 1/k (Koppel_ACC_Wirkung) |
200 | unsigned char Driftkomp; // |
205 | unsigned char Driftkomp; |
201 | unsigned char DynamicStability; // |
206 | unsigned char DynamicStability; |
202 | unsigned char UserParam5; // Wert : 0-250 |
207 | unsigned char UserParam5; // Wert : 0-250 |
203 | unsigned char UserParam6; // Wert : 0-250 |
208 | unsigned char UserParam6; // Wert : 0-250 |
204 | unsigned char UserParam7; // Wert : 0-250 |
209 | unsigned char UserParam7; // Wert : 0-250 |
205 | unsigned char UserParam8; // Wert : 0-250 |
210 | unsigned char UserParam8; // Wert : 0-250 |
206 | //---Output --------------------------------------------- |
211 | //---Output --------------------------------------------- |
207 | unsigned char J16Bitmask; // for the J16 Output |
212 | unsigned char J16Bitmask; // for the J16 Output |
- | 213 | unsigned char J16Timing; // for the J16 Output |
|
208 | unsigned char J16Timing; // for the J16 Output |
214 | unsigned char J17Bitmask; // for the J17 Output |
209 | unsigned char J17Bitmask; // for the J17 Output |
215 | unsigned char J17Timing; // for the J17 Output |
210 | unsigned char J17Timing; // for the J17 Output |
216 | // seit version V0.75c |
211 | unsigned char WARN_J16_Bitmask; // 0.75 for the J16 Output |
217 | unsigned char WARN_J16_Bitmask; // for the J16 Output |
212 | unsigned char WARN_J17_Bitmask; // 0.75 for the J17 Output |
218 | unsigned char WARN_J17_Bitmask; // for the J17 Output |
213 | //---NaviCtrl--------------------------------------------- |
219 | //---NaviCtrl--------------------------------------------- |
214 | unsigned char NaviGpsModeControl; // Parameters for the Naviboard |
220 | unsigned char NaviGpsModeControl; // Parameters for the Naviboard |
215 | unsigned char NaviGpsGain; |
221 | unsigned char NaviGpsGain; |
216 | unsigned char NaviGpsP; |
222 | unsigned char NaviGpsP; |
217 | unsigned char NaviGpsI; |
223 | unsigned char NaviGpsI; |
218 | unsigned char NaviGpsD; |
224 | unsigned char NaviGpsD; |
219 | unsigned char NaviGpsPLimit; |
225 | unsigned char NaviGpsPLimit; |
220 | unsigned char NaviGpsILimit; |
226 | unsigned char NaviGpsILimit; |
221 | unsigned char NaviGpsDLimit; |
227 | unsigned char NaviGpsDLimit; |
222 | unsigned char NaviGpsACC; |
228 | unsigned char NaviGpsACC; |
223 | unsigned char NaviGpsMinSat; |
229 | unsigned char NaviGpsMinSat; |
224 | unsigned char NaviStickThreshold; |
230 | unsigned char NaviStickThreshold; |
225 | unsigned char NaviWindCorrection; |
231 | unsigned char NaviWindCorrection; |
226 | unsigned char NaviSpeedCompensation; |
232 | unsigned char NaviSpeedCompensation; |
227 | unsigned char NaviOperatingRadius; |
233 | unsigned char NaviOperatingRadius; |
228 | unsigned char NaviAngleLimitation; |
234 | unsigned char NaviAngleLimitation; |
229 | unsigned char NaviPH_LoginTime; |
235 | unsigned char NaviPH_LoginTime; |
230 | //---Ext.Ctrl--------------------------------------------- |
236 | //---Ext.Ctrl--------------------------------------------- |
231 | unsigned char ExternalControl; // for serial Control |
237 | unsigned char ExternalControl; // for serial Control |
- | 238 | //---CareFree--------------------------------------------- |
|
232 | //---CareFree--------------------------------------------- |
239 | unsigned char OrientationAngle; // Where is the front-direction? |
233 | unsigned char OrientationAngle; // 0.80 Where is the front-direction? |
240 | unsigned char OrientationModeControl; // switch for CareFree |
234 | unsigned char OrientationModeControl; // 0.80 switch for CareFree |
241 | unsigned char MotorSafetySwitch; |
235 | //-------------------------------------------------------- |
242 | //------------------------------------------------ |
236 | unsigned char BitConfig; // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
243 | unsigned char BitConfig; // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
237 | unsigned char ServoCompInvert; // // 0x01 = Nick, 0x02 = Roll 0 oder 1 // WICHTIG!!! am Ende lassen |
244 | unsigned char ServoCompInvert; // // 0x01 = Nick, 0x02 = Roll 0 oder 1 // WICHTIG!!! am Ende lassen |
238 | unsigned char ExtraConfig; // bitcodiert |
- | |
239 | char Name[12]; |
245 | unsigned char ExtraConfig; // bitcodiert |
Line 240... | Line 246... | ||
240 | unsigned char crc; |
246 | char Name[12]; |
241 | 247 | unsigned char crc; // must be the last byte! |
|
242 | }; |
248 | }; |