Subversion Repositories Projects

Rev

Rev 334 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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