Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
805 | - | 1 | // /////////////////////////////////////////////////////////////////////////////// |
2 | // Copyright (C) 2010, Frank Blumenberg |
||
3 | // |
||
4 | // See License.txt for complete licensing and attribution information. |
||
5 | // Permission is hereby granted, free of charge, to any person obtaining a copy |
||
6 | // of this software and associated documentation files (the "Software"), to deal |
||
7 | // in the Software without restriction, including without limitation the rights |
||
8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||
9 | // copies of the Software, and to permit persons to whom the Software is |
||
10 | // furnished to do so, subject to the following conditions: |
||
11 | // |
||
12 | // The above copyright notice and this permission notice shall be included in all |
||
13 | // copies or substantial portions of the Software. |
||
14 | // |
||
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||
16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||
17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||
18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||
19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||
20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
||
21 | // THE SOFTWARE. |
||
22 | // |
||
23 | // /////////////////////////////////////////////////////////////////////////////// |
||
24 | |||
25 | #define kHostnameKey @"hostname" |
||
26 | #define kHostportKey @"hostport" |
||
27 | #define kUseDummyConnKey @"usedummy" |
||
28 | #define kUseConnClassKey @"useconnclass" |
||
29 | |||
30 | |||
31 | #define kMKDataKeyVersion @"version" |
||
32 | #define kMKDataKeyVersionShort @"versionShort" |
||
33 | #define kMKDataKeyMenuItem @"menuItem" |
||
34 | #define kMKDataKeyMaxMenuItem @"maxMenuItem" |
||
35 | #define kMKDataKeyMenuRows @"menuRows" |
||
36 | #define kMKDataKeyDebugData @"debugData" |
||
37 | #define kMKDataKeyLabel @"label" |
||
38 | #define kMKDataKeyIndex @"index" |
||
39 | #define kMKDataKeyChannels @"channels" |
||
40 | |||
41 | #define kMKDataKeyResult @"result" |
||
42 | #define kMKDataKeyRawValue @"rawvalue" |
||
43 | |||
44 | #define kMKDataKeyAddress @"address" |
||
45 | |||
46 | |||
47 | |||
48 | // unsigned char Kanalbelegung[12]; |
||
49 | #define kKeyKanalbelegung00 @"Kanalbelegung00" |
||
50 | #define kKeyKanalbelegung01 @"Kanalbelegung01" |
||
51 | #define kKeyKanalbelegung02 @"Kanalbelegung02" |
||
52 | #define kKeyKanalbelegung03 @"Kanalbelegung03" |
||
53 | #define kKeyKanalbelegung04 @"Kanalbelegung04" |
||
54 | #define kKeyKanalbelegung05 @"Kanalbelegung05" |
||
55 | #define kKeyKanalbelegung06 @"Kanalbelegung06" |
||
56 | #define kKeyKanalbelegung07 @"Kanalbelegung07" |
||
57 | #define kKeyKanalbelegung08 @"Kanalbelegung08" |
||
58 | #define kKeyKanalbelegung09 @"Kanalbelegung09" |
||
59 | #define kKeyKanalbelegung10 @"Kanalbelegung10" |
||
60 | #define kKeyKanalbelegung11 @"Kanalbelegung11" |
||
61 | #define kKeyKanalbelegung12 @"Kanalbelegung12" |
||
62 | #define kKeyGlobalConfig @"GlobalConfig" |
||
63 | // unsigned char GlobalConfig; |
||
64 | // #define CFG_HOEHENREGELUNG 0x01 |
||
65 | // #define CFG_HOEHEN_SCHALTER 0x02 |
||
66 | // #define CFG_HEADING_HOLD 0x04 |
||
67 | // #define CFG_KOMPASS_AKTIV 0x08 |
||
68 | // #define CFG_KOMPASS_FIX 0x10 |
||
69 | // #define CFG_GPS_AKTIV 0x20 |
||
70 | // #define CFG_ACHSENKOPPLUNG_AKTIV 0x40 |
||
71 | // #define CFG_DREHRATEN_BEGRENZER 0x80 |
||
72 | #define kKeyGlobalConfig_HOEHENREGELUNG @"GlobalConfig_HOEHENREGELUNG" |
||
73 | #define kKeyGlobalConfig_HOEHEN_SCHALTER @"GlobalConfig_HOEHEN_SCHALTER" |
||
74 | #define kKeyGlobalConfig_HEADING_HOLD @"GlobalConfig_HEADING_HOLD" |
||
75 | #define kKeyGlobalConfig_KOMPASS_AKTIV @"GlobalConfig_KOMPASS_AKTIV" |
||
76 | #define kKeyGlobalConfig_KOMPASS_FIX @"GlobalConfig_KOMPASS_FIX" |
||
77 | #define kKeyGlobalConfig_GPS_AKTIV @"GlobalConfig_GPS_AKTIV" |
||
78 | #define kKeyGlobalConfig_ACHSENKOPPLUNG_AKTIV @"GlobalConfig_ACHSENKOPPLUNG_AKTIV" |
||
79 | #define kKeyGlobalConfig_DREHRATEN_BEGRENZER @"GlobalConfig_DREHRATEN_BEGRENZER" |
||
80 | // unsigned char Hoehe_MinGas; // Wert : 0-100 |
||
81 | #define kKeyHoehe_MinGas @"Hoehe_MinGas" |
||
82 | // unsigned char Luftdruck_D; // Wert : 0-250 |
||
83 | #define kKeyLuftdruck_D @"Luftdruck_D" |
||
84 | // unsigned char MaxHoehe; // Wert : 0-32 |
||
85 | #define kKeyMaxHoehe @"MaxHoehe" |
||
86 | // unsigned char Hoehe_P; // Wert : 0-32 |
||
87 | #define kKeyHoehe_P @"Hoehe_P" |
||
88 | // unsigned char Hoehe_Verstaerkung; // Wert : 0-50 |
||
89 | #define kKeyHoehe_Verstaerkung @"Hoehe_Verstaerkung" |
||
90 | // unsigned char Hoehe_ACC_Wirkung; // Wert : 0-250 |
||
91 | #define kKeyHoehe_ACC_Wirkung @"Hoehe_ACC_Wirkung" |
||
92 | // unsigned char Hoehe_HoverBand; // Wert : 0-250 |
||
93 | #define kKeyHoehe_HoverBand @"Hoehe_HoverBand" |
||
94 | // unsigned char Hoehe_GPS_Z; // Wert : 0-250 |
||
95 | #define kKeyHoehe_GPS_Z @"Hoehe_GPS_Z" |
||
96 | // unsigned char Hoehe_StickNeutralPoint;// Wert : 0-250 |
||
97 | #define kKeyHoehe_StickNeutralPoint @"Hoehe_StickNeutralPoint" |
||
98 | // unsigned char Stick_P; // Wert : 1-6 |
||
99 | #define kKeyStick_P @"Stick_P" |
||
100 | // unsigned char Stick_D; // Wert : 0-64 |
||
101 | #define kKeyStick_D @"Stick_D" |
||
102 | // unsigned char Gier_P; // Wert : 1-20 |
||
103 | #define kKeyGier_P @"Gier_P" |
||
104 | // unsigned char Gas_Min; // Wert : 0-32 |
||
105 | #define kKeyGas_Min @"Gas_Min" |
||
106 | // unsigned char Gas_Max; // Wert : 33-250 |
||
107 | #define kKeyGas_Max @"Gas_Max" |
||
108 | // unsigned char GyroAccFaktor; // Wert : 1-64 |
||
109 | #define kKeyGyroAccFaktor @"GyroAccFaktor" |
||
110 | // unsigned char KompassWirkung; // Wert : 0-32 |
||
111 | #define kKeyKompassWirkung @"KompassWirkung" |
||
112 | // unsigned char Gyro_P; // Wert : 10-250 |
||
113 | #define kKeyGyro_P @"Gyro_P" |
||
114 | // unsigned char Gyro_I; // Wert : 0-250 |
||
115 | #define kKeyGyro_I @"Gyro_I" |
||
116 | // unsigned char Gyro_D; // Wert : 0-250 |
||
117 | #define kKeyGyro_D @"Gyro_D" |
||
118 | // unsigned char Gyro_Gier_P; // Wert : 10-250 |
||
119 | #define kKeyGyro_Gier_P @"Gyro_Gier_P" |
||
120 | // unsigned char Gyro_Gier_I; // Wert : 0-250 |
||
121 | #define kKeyGyro_Gier_I @"Gyro_Gier_I" |
||
122 | // unsigned char UnterspannungsWarnung; // Wert : 0-250 |
||
123 | #define kKeyUnterspannungsWarnung @"UnterspannungsWarnung" |
||
124 | // unsigned char NotGas; // Wert : 0-250 //Gaswert bei Empfangsverlust |
||
125 | #define kKeyNotGas @"NotGas" |
||
126 | // unsigned char NotGasZeit; // Wert : 0-250 // Zeitbis auf NotGas geschaltet wird, wg. Rx-Problemen |
||
127 | #define kKeyNotGasZeit @"NotGasZeit" |
||
128 | // unsigned char Receiver; // 0= Summensignal, 1= Spektrum, 2 =Jeti, 3=ACT DSL, 4=ACT S3D |
||
129 | #define kKeyReceiver @"Receiver" |
||
130 | // unsigned char I_Faktor; // Wert : 0-250 |
||
131 | #define kKeyI_Faktor @"I_Faktor" |
||
132 | // unsigned char UserParam1; // Wert : 0-250 |
||
133 | #define kKeyUserParam1 @"UserParam1" |
||
134 | // unsigned char UserParam2; // Wert : 0-250 |
||
135 | #define kKeyUserParam2 @"UserParam2" |
||
136 | // unsigned char UserParam3; // Wert : 0-250 |
||
137 | #define kKeyUserParam3 @"UserParam3" |
||
138 | // unsigned char UserParam4; // Wert : 0-250 |
||
139 | #define kKeyUserParam4 @"UserParam4" |
||
140 | // unsigned char ServoNickControl; // Wert : 0-250 // Stellung des Servos |
||
141 | #define kKeyServoNickControl @"ServoNickControl" |
||
142 | // unsigned char ServoNickComp; // Wert : 0-250 // Einfluss Gyro/Servo |
||
143 | #define kKeyServoNickComp @"ServoNickComp" |
||
144 | // unsigned char ServoNickMin; // Wert : 0-250 // Anschlag |
||
145 | #define kKeyServoNickMin @"ServoNickMin" |
||
146 | // unsigned char ServoNickMax; // Wert : 0-250 // Anschlag |
||
147 | #define kKeyServoNickMax @"ServoNickMax" |
||
148 | // //--- Seit V0.75 |
||
149 | // unsigned char ServoRollControl; // Wert : 0-250 // Stellung des Servos |
||
150 | #define kKeyServoRollControl @"ServoRollControl" |
||
151 | // unsigned char ServoRollComp; // Wert : 0-250 |
||
152 | #define kKeyServoRollComp @"ServoRollComp" |
||
153 | // unsigned char ServoRollMin; // Wert : 0-250 |
||
154 | #define kKeyServoRollMin @"ServoRollMin" |
||
155 | // unsigned char ServoRollMax; // Wert : 0-250 |
||
156 | #define kKeyServoRollMax @"ServoRollMax" |
||
157 | // //--- |
||
158 | // unsigned char ServoNickRefresh; // Speed of the Servo |
||
159 | #define kKeyServoNickRefresh @"ServoNickRefresh" |
||
160 | // unsigned char Servo3; // Value or mapping of the Servo Output |
||
161 | #define kKeyServo3 @"Servo3" |
||
162 | // unsigned char Servo4; // Value or mapping of the Servo Output |
||
163 | #define kKeyServo4 @"Servo4" |
||
164 | // unsigned char Servo5; // Value or mapping of the Servo Output |
||
165 | #define kKeyServo5 @"Servo5" |
||
166 | // unsigned char LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
||
167 | #define kKeyLoopGasLimit @"LoopGasLimit" |
||
168 | // unsigned char LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |
||
169 | #define kKeyLoopThreshold @"LoopThreshold" |
||
170 | // unsigned char LoopHysterese; // Wert: 0-250 Hysterese für Stickausschlag |
||
171 | #define kKeyLoopHysterese @"LoopHysterese" |
||
172 | // unsigned char AchsKopplung1; // Wert: 0-250 Faktor, mit dem Gier die Achsen Roll und Nick koppelt (NickRollMitkopplung) |
||
173 | #define kKeyAchsKopplung1 @"AchsKopplung1" |
||
174 | // unsigned char AchsKopplung2; // Wert: 0-250 Faktor, mit dem Nick und Roll verkoppelt werden |
||
175 | #define kKeyAchsKopplung2 @"AchsKopplung2" |
||
176 | // unsigned char CouplingYawCorrection; // Wert: 0-250 Faktor, mit dem Nick und Roll verkoppelt werden |
||
177 | #define kKeyCouplingYawCorrection @"CouplingYawCorrection" |
||
178 | // unsigned char WinkelUmschlagNick; // Wert: 0-250 180?-Punkt |
||
179 | #define kKeyWinkelUmschlagNick @"WinkelUmschlagNick" |
||
180 | // unsigned char WinkelUmschlagRoll; // Wert: 0-250 180?-Punkt |
||
181 | #define kKeyWinkelUmschlagRoll @"WinkelUmschlagRoll" |
||
182 | // unsigned char GyroAccAbgleich; // 1/k (Koppel_ACC_Wirkung) |
||
183 | #define kKeyGyroAccAbgleich @"GyroAccAbgleich" |
||
184 | // unsigned char Driftkomp; |
||
185 | #define kKeyDriftkomp @"Driftkomp" |
||
186 | // unsigned char DynamicStability; |
||
187 | #define kKeyDynamicStability @"DynamicStability" |
||
188 | // unsigned char UserParam5; // Wert : 0-250 |
||
189 | #define kKeyUserParam5 @"UserParam5" |
||
190 | // unsigned char UserParam6; // Wert : 0-250 |
||
191 | #define kKeyUserParam6 @"UserParam6" |
||
192 | // unsigned char UserParam7; // Wert : 0-250 |
||
193 | #define kKeyUserParam7 @"UserParam7" |
||
194 | // unsigned char UserParam8; // Wert : 0-250 |
||
195 | #define kKeyUserParam8 @"UserParam8" |
||
196 | // //---Output --------------------------------------------- |
||
197 | // unsigned char J16Bitmask; // for the J16 Output |
||
198 | #define kKeyJ16Bitmask @"J16Bitmask" |
||
199 | // unsigned char J16Timing; // for the J16 Output |
||
200 | #define kKeyJ16Timing @"J16Timing" |
||
201 | // unsigned char J17Bitmask; // for the J17 Output |
||
202 | #define kKeyJ17Bitmask @"J17Bitmask" |
||
203 | // unsigned char J17Timing; // for the J17 Output |
||
204 | #define kKeyJ17Timing @"J17Timing" |
||
205 | // // seit version V0.75c |
||
206 | // unsigned char WARN_J16_Bitmask; // for the J16 Output |
||
207 | #define kKeyWARN_J16_Bitmask @"WARN_J16_Bitmask" |
||
208 | // unsigned char WARN_J17_Bitmask; // for the J17 Output |
||
209 | #define kKeyWARN_J17_Bitmask @"WARN_J17_Bitmask" |
||
210 | // //---NaviCtrl--------------------------------------------- |
||
211 | // unsigned char NaviGpsModeControl; // Parameters for the Naviboard |
||
212 | #define kKeyNaviGpsModeControl @"NaviGpsModeControl" |
||
213 | // unsigned char NaviGpsGain; |
||
214 | #define kKeyNaviGpsGain @"NaviGpsGain" |
||
215 | // unsigned char NaviGpsP; |
||
216 | #define kKeyNaviGpsP @"NaviGpsP" |
||
217 | // unsigned char NaviGpsI; |
||
218 | #define kKeyNaviGpsI @"NaviGpsI" |
||
219 | // unsigned char NaviGpsD; |
||
220 | #define kKeyNaviGpsD @"NaviGpsD" |
||
221 | // unsigned char NaviGpsPLimit; |
||
222 | #define kKeyNaviGpsPLimit @"NaviGpsPLimit" |
||
223 | // unsigned char NaviGpsILimit; |
||
224 | #define kKeyNaviGpsILimit @"NaviGpsILimit" |
||
225 | // unsigned char NaviGpsDLimit; |
||
226 | #define kKeyNaviGpsDLimit @"NaviGpsDLimit" |
||
227 | // unsigned char NaviGpsACC; |
||
228 | #define kKeyNaviGpsACC @"NaviGpsACC" |
||
229 | // unsigned char NaviGpsMinSat; |
||
230 | #define kKeyNaviGpsMinSat @"NaviGpsMinSat" |
||
231 | // unsigned char NaviStickThreshold; |
||
232 | #define kKeyNaviStickThreshold @"NaviStickThreshold" |
||
233 | // unsigned char NaviWindCorrection; |
||
234 | #define kKeyNaviWindCorrection @"NaviWindCorrection" |
||
235 | // unsigned char NaviSpeedCompensation; |
||
236 | #define kKeyNaviSpeedCompensation @"NaviSpeedCompensation" |
||
237 | // unsigned char NaviOperatingRadius; |
||
238 | #define kKeyNaviOperatingRadius @"NaviOperatingRadius" |
||
239 | // unsigned char NaviAngleLimitation; |
||
240 | #define kKeyNaviAngleLimitation @"NaviAngleLimitation" |
||
241 | // unsigned char NaviPH_LoginTime; |
||
242 | #define kKeyNaviPH_LoginTime @"NaviPH_LoginTime" |
||
243 | // //---Ext.Ctrl--------------------------------------------- |
||
244 | // unsigned char ExternalControl; // for serial Control |
||
245 | #define kKeyExternalControl @"ExternalControl" |
||
246 | // //------------------------------------------------ |
||
247 | |||
248 | #define kKeyBitConfig @"BitConfig" |
||
249 | // unsigned char BitConfig; // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
||
250 | // #define CFG1_LOOP_UP 0x01 |
||
251 | // #define CFG1_LOOP_DOWN 0x02 |
||
252 | // #define CFG1_LOOP_LEFT 0x04 |
||
253 | // #define CFG1_LOOP_RIGHT 0x08 |
||
254 | // #define CFG1_MOTOR_BLINK 0x10 |
||
255 | // #define CFG1_MOTOR_OFF_LED1 0x20 |
||
256 | // #define CFG1_MOTOR_OFF_LED2 0x40 |
||
257 | #define kKeyBitConfig_LOOP_UP @"BitConfig_LOOP_UP" |
||
258 | #define kKeyBitConfig_LOOP_DOWN @"BitConfig_LOOP_DOWN" |
||
259 | #define kKeyBitConfig_LOOP_LEFT @"BitConfig_LOOP_LEFT" |
||
260 | #define kKeyBitConfig_LOOP_RIGHT @"BitConfig_LOOP_RIGHT" |
||
261 | #define kKeyBitConfig_MOTOR_BLINK @"BitConfig_MOTOR_BLINK" |
||
262 | #define kKeyBitConfig_MOTOR_OFF_LED1 @"BitConfig_MOTOR_OFF_LED1" |
||
263 | #define kKeyBitConfig_MOTOR_OFF_LED2 @"BitConfig_MOTOR_OFF_LED2" |
||
264 | // unsigned char ServoCompInvert; // // 0x01 = Nick, 0x02 = Roll 0 oder 1 // WICHTIG!!! am Ende lassen |
||
265 | #define kKeyServoCompInvert_Nick @"ServoCompInvert_Nick" |
||
266 | #define kKeyServoCompInvert_ROLL @"ServoCompInvert_ROLL" |
||
267 | // unsigned char ExtraConfig; // bitcodiert |
||
268 | // #define CFG2_HEIGHT_LIMIT 0x01 |
||
269 | // #define CFG2_VARIO_BEEP 0x02 |
||
270 | // #define CFG2_SENSITIVE_RC 0x04 |
||
271 | #define kKeyExtraConfig @"ExtraConfig" |
||
272 | #define kKeyExtraConfig_HEIGHT_LIMIT @"ExtraConfig_HEIGHT_LIMIT" |
||
273 | #define kKeyExtraConfig_VARIO_BEEP @"ExtraConfig_VARIO_BEEP" |
||
274 | #define kKeyExtraConfig_SENSITIVE_RC @"ExtraConfig_SENSITIVE_RC" |
||
275 | // char Name[12]; |
||
276 | #define kKeyName @"Name" |
||
277 | |||
278 |