Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
158 KeyOz 1
/***************************************************************************
2
 *   Copyright (C) 2008 by Manuel Schrape                                  *
3
 *   manuel.schrape@gmx.de                                                 *
4
 *                                                                         *
5
 *   This program is free software; you can redistribute it and/or modify  *
6
 *   it under the terms of the GNU General Public License as published by  *
7
 *   the Free Software Foundation; either version 2 of the License.        *
8
 *                                                                         *
9
 *   This program is distributed in the hope that it will be useful,       *
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12
 *   GNU General Public License for more details.                          *
13
 *                                                                         *
14
 *   You should have received a copy of the GNU General Public License     *
15
 *   along with this program; if not, write to the                         *
16
 *   Free Software Foundation, Inc.,                                       *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 ***************************************************************************/
19
#ifndef PARAMETER_POSITIONS_H
20
#define PARAMETER_POSITIONS_H
21
 
234 KeyOz 22
#ifdef _BETA_
246 KeyOz 23
// Positionen der Navidaten im OSD-Datensatz
24
////////////////////////////////////////////
25
static const int N_CUR_LONGITUDE    = 0;
26
static const int N_CUR_LATITUDE     = 4;
27
static const int N_CUR_ALTITUDE     = 8;
28
static const int N_CUR_STATUS       = 12;
29
 
30
static const int N_TAR_LONGITUDE    = 13; //16
31
static const int N_TAR_LATITUDE     = 17; //20
32
static const int N_TAR_ALTITUDE     = 21; //24
33
static const int N_TAR_STATUS       = 25; //28
34
static const int N_TAR_DISTANCE     = 26; //32
35
static const int N_TAR_ANGLE        = 28; //34
36
 
37
static const int N_HOME_LONGITUDE   = 30; //36
38
static const int N_HOME_LATITUDE    = 34; //40
39
static const int N_HOME_ALTITUDE    = 38; //44
40
static const int N_HOME_STATUS      = 42; //48
41
static const int N_HOME_DISTANCE    = 43; //52
42
static const int N_HOME_ANGLE       = 45; //54
43
 
44
static const int N_WP_INDEX         = 47; //56
45
static const int N_WP_NUMBER        = 48; //57
46
 
47
static const int N_SATS_IN_USER     = 49; //58
48
static const int N_ALTIMETER        = 50; //59
49
static const int N_VARIOMETER       = 52; //61
50
static const int N_FLYING_TIME      = 54; //63
51
static const int N_UBAT             = 56; //65
52
static const int N_GROUND_SPEED     = 57; //66
53
static const int N_HEADING          = 59; //68
54
static const int N_COMAPSS_HEADING  = 61; //70
55
static const int N_ANGLE_NICK       = 63; //72
56
static const int N_ANGLE_ROLL       = 64; //73
57
static const int N_RC_QUALITY       = 65; //74
58
static const int N_MK_FLAGS         = 66; //75
59
static const int N_NC_FLAGS         = 67; //76
60
static const int N_ERRORCODE        = 68; //77
61
 
62
 
63
// Positionen der Setting-Parameter
64
///////////////////////////////////
234 KeyOz 65
static const int VERSION_SETTINGS = 74;
66
 
67
static const int MaxParameter = 93;
68
 
69
static const int P_KANAL_GAS   = 0;
70
static const int P_KANAL_GIER  = 1;
71
static const int P_KANAL_NICK  = 2;
72
static const int P_KANAL_ROLL  = 3;
73
static const int P_KANAL_POTI1 = 4;
74
static const int P_KANAL_POTI2 = 5;
75
static const int P_KANAL_POTI3 = 6;
76
static const int P_KANAL_POTI4 = 7;
77
static const int P_GLOBAL_CONF = 8;
78
static const int P_MIN_GAS     = 9;
79
 
80
static const int P_DRUCK_D       = 10;
81
static const int P_MAXHOEHE      = 11;
82
static const int P_HOEHE_P       = 12;
83
static const int P_HOEHE_GAIN    = 13;
84
static const int P_HOEHE_ACC     = 14;
85
static const int P_STICK_P       = 15;
86
static const int P_STICK_D       = 16;
87
static const int P_GIER_P        = 17;
88
static const int P_GAS_MIN       = 18;
89
static const int P_GAS_MAX       = 19;
90
 
91
static const int P_GYRO_ACC_FAKTOR = 20;
92
static const int P_KOMPASS_WIRKUNG = 21;
93
static const int P_GYRO_P          = 22;
94
static const int P_GYRO_I          = 23;
95
static const int P_GYRO_D          = 24;
96
static const int P_UNTERSPANNUNG   = 25;
97
static const int P_NOTGAS          = 26;
98
static const int P_NOTGASZEIT      = 27;
99
static const int P_AUSRICHTUNG     = 28;
100
static const int P_FAKTOR_I        = 29;
101
 
102
static const int P_USER_1          = 30;
103
static const int P_USER_2          = 31;
104
static const int P_USER_3          = 32;
105
static const int P_USER_4          = 33;
106
static const int P_SERVO_NICK_CONT = 34;
107
static const int P_SERVO_NICK_COMP = 35;
108
static const int P_SERVO_NICK_MIN  = 36;
109
static const int P_SERVO_NICK_MAX  = 37;
110
static const int P_SERVO_NICK_REFR = 38;
111
static const int P_LOOP_GAS_LIMIT  = 39;
112
 
113
static const int P_LOOP_THRESHOLD  = 40;
114
static const int P_LOOP_HYSTERESE  = 41;
115
static const int P_ACHS_KOPPLUNG1  = 42;
116
static const int P_ACHS_KOPPLUNG2  = 43;
117
static const int P_ACHS_GKOPPLUNG  = 44;
118
static const int P_WINKEL_NICK     = 45;
119
static const int P_WINKEL_ROLL     = 46;
120
static const int P_GYRO_ACC_ABGL   = 47;
121
static const int P_DRIFT_KOMP      = 48;
122
static const int P_DYNAMIC_STAB    = 49;
123
 
124
static const int P_USER_5          = 50;
125
static const int P_USER_6          = 51;
126
static const int P_USER_7          = 52;
127
static const int P_USER_8          = 53;
128
static const int P_J16_BITMASK     = 54;
129
static const int P_J16_TIMING      = 55;
130
static const int P_J17_BITMASK     = 56;
131
static const int P_J17_TIMING      = 57;
132
static const int P_NAV_GPS_MODE    = 58;
133
static const int P_NAV_GPS_GAIN    = 59;
134
 
135
static const int P_NAV_GPS_P        = 60;
136
static const int P_NAV_GPS_I        = 61;
137
static const int P_NAV_GPS_D        = 62;
138
static const int P_NAV_GPS_P_LIMIT  = 63;
139
static const int P_NAV_GPS_I_LIMIT  = 64;
140
static const int P_NAV_GPS_D_LIMIT  = 65;
141
static const int P_NAV_GPS_ACC      = 66;
142
static const int P_NAV_GPS_MIN      = 67;
143
static const int P_NAV_STICK_THRE   = 68;
144
static const int P_NAV_WIND_CORR    = 69;
145
 
146
static const int P_NAV_SPEED_COMP   = 70;
147
static const int P_NAV_RADIUS       = 71;
148
static const int P_NAV_ANGLE_LIMIT  = 72;
149
static const int P_NAV_PH_LOGINTIME = 73;
150
static const int P_EXTERNAL         = 74;
151
static const int P_LOOP_CONFIG      = 75;
152
static const int P_SERVO_NICK_COMPI = 76;
153
static const int P_RESERVED         = 77;
154
static const int P_NAME             = 81;
155
#else
246 KeyOz 156
// Positionen der Navidaten im OSD-Datensatz
157
////////////////////////////////////////////
158
static const int N_CUR_LONGITUDE    = 0;
159
static const int N_CUR_LATITUDE     = 4;
160
static const int N_CUR_ALTITUDE     = 8;
161
static const int N_CUR_STATUS       = 12;
162
 
163
static const int N_TAR_LONGITUDE    = 16;
164
static const int N_TAR_LATITUDE     = 20;
165
static const int N_TAR_ALTITUDE     = 24;
166
static const int N_TAR_STATUS       = 28;
167
static const int N_TAR_DISTANCE     = 32;
168
static const int N_TAR_ANGLE        = 34;
169
 
170
static const int N_HOME_LONGITUDE   = 36;
171
static const int N_HOME_LATITUDE    = 40;
172
static const int N_HOME_ALTITUDE    = 44;
173
static const int N_HOME_STATUS      = 48;
174
static const int N_HOME_DISTANCE    = 52;
175
static const int N_HOME_ANGLE       = 54;
176
 
177
static const int N_WP_INDEX         = 56;
178
static const int N_WP_NUMBER        = 57;
179
 
180
static const int N_SATS_IN_USER     = 58;
181
static const int N_ALTIMETER        = 59;
182
static const int N_VARIOMETER       = 61;
183
static const int N_FLYING_TIME      = 63;
184
static const int N_UBAT             = 65;
185
static const int N_GROUND_SPEED     = 66;
186
static const int N_HEADING          = 68;
187
static const int N_COMAPSS_HEADING  = 70;
188
static const int N_ANGLE_NICK       = 72;
189
static const int N_ANGLE_ROLL       = 73;
190
static const int N_RC_QUALITY       = 74;
191
static const int N_MK_FLAGS         = 75;
192
static const int N_NC_FLAGS         = 76;
193
static const int N_ERRORCODE        = 77;
194
 
195
 
196
// Positionen der Setting-Parameter
197
///////////////////////////////////
198
 
199
 
234 KeyOz 200
static const int P_GYRO_D          = 0;
201
static const int P_ACHS_KOPPLUNG2  = 0;
202
static const int P_NAV_GPS_P_LIMIT  = 0;
203
static const int P_NAV_GPS_I_LIMIT  = 0;
204
static const int P_NAV_GPS_D_LIMIT  = 0;
205
static const int P_NAV_PH_LOGINTIME = 0;
206
 
166 KeyOz 207
static const int VERSION_SETTINGS = 73;
159 KeyOz 208
 
166 KeyOz 209
static const int MaxParameter = 87;
158 KeyOz 210
 
211
static const int P_KANAL_GAS   = 0;
212
static const int P_KANAL_GIER  = 1;
213
static const int P_KANAL_NICK  = 2;
214
static const int P_KANAL_ROLL  = 3;
215
static const int P_KANAL_POTI1 = 4;
216
static const int P_KANAL_POTI2 = 5;
217
static const int P_KANAL_POTI3 = 6;
218
static const int P_KANAL_POTI4 = 7;
219
static const int P_GLOBAL_CONF = 8;
220
static const int P_MIN_GAS     = 9;
221
 
222
static const int P_DRUCK_D       = 10;
223
static const int P_MAXHOEHE      = 11;
224
static const int P_HOEHE_P       = 12;
225
static const int P_HOEHE_GAIN    = 13;
226
static const int P_HOEHE_ACC     = 14;
227
static const int P_STICK_P       = 15;
228
static const int P_STICK_D       = 16;
229
static const int P_GIER_P        = 17;
230
static const int P_GAS_MIN       = 18;
231
static const int P_GAS_MAX       = 19;
232
 
233
static const int P_GYRO_ACC_FAKTOR = 20;
234
static const int P_KOMPASS_WIRKUNG = 21;
235
static const int P_GYRO_P          = 22;
236
static const int P_GYRO_I          = 23;
237
static const int P_UNTERSPANNUNG   = 24;
238
static const int P_NOTGAS          = 25;
239
static const int P_NOTGASZEIT      = 26;
240
static const int P_AUSRICHTUNG     = 27;
241
static const int P_FAKTOR_I        = 28;
242
static const int P_USER_1          = 29;
243
 
244
static const int P_USER_2          = 30;
245
static const int P_USER_3          = 31;
246
static const int P_USER_4          = 32;
247
static const int P_SERVO_NICK_CONT = 33;
248
static const int P_SERVO_NICK_COMP = 34;
249
static const int P_SERVO_NICK_MIN  = 35;
250
static const int P_SERVO_NICK_MAX  = 36;
251
static const int P_SERVO_NICK_REFR = 37;
252
static const int P_LOOP_GAS_LIMIT  = 38;
253
static const int P_LOOP_THRESHOLD  = 39;
254
 
255
static const int P_LOOP_HYSTERESE  = 40;
234 KeyOz 256
static const int P_ACHS_KOPPLUNG1  = 41;
158 KeyOz 257
static const int P_ACHS_GKOPPLUNG  = 42;
258
static const int P_WINKEL_NICK     = 43;
259
static const int P_WINKEL_ROLL     = 44;
260
static const int P_GYRO_ACC_ABGL   = 45;
261
static const int P_DRIFT_KOMP      = 46;
262
static const int P_DYNAMIC_STAB    = 47;
263
static const int P_USER_5          = 48;
264
static const int P_USER_6          = 49;
265
 
266
static const int P_USER_7          = 50;
267
static const int P_USER_8          = 51;
268
static const int P_J16_BITMASK     = 52;
269
static const int P_J16_TIMING      = 53;
270
static const int P_J17_BITMASK     = 54;
271
static const int P_J17_TIMING      = 55;
272
static const int P_NAV_GPS_MODE    = 56;
273
static const int P_NAV_GPS_GAIN    = 57;
274
static const int P_NAV_GPS_P       = 58;
275
static const int P_NAV_GPS_I       = 59;
276
 
277
static const int P_NAV_GPS_D        = 60;
278
static const int P_NAV_GPS_ACC      = 61;
279
static const int P_NAV_GPS_MIN      = 62;
280
static const int P_NAV_STICK_THRE   = 63;
281
static const int P_NAV_WIND_CORR    = 64;
282
static const int P_NAV_SPEED_COMP   = 65;
283
static const int P_NAV_RADIUS       = 66;
166 KeyOz 284
static const int P_NAV_ANGLE_LIMIT  = 67;
158 KeyOz 285
 
166 KeyOz 286
static const int P_EXTERNAL         = 68;
287
static const int P_LOOP_CONFIG      = 69;
288
static const int P_SERVO_NICK_COMPI = 70;
289
static const int P_RESERVED         = 71;
290
static const int P_NAME             = 75;
234 KeyOz 291
#endif
158 KeyOz 292
 
159 KeyOz 293
#endif