Rev 246 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 246 | Rev 279 | ||
---|---|---|---|
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 | static const int N_CUR_LONGITUDE = 0; |
24 | static const int N_CUR_LONGITUDE = 0; |
26 | static const int N_CUR_LATITUDE = 4; |
25 | static const int N_CUR_LATITUDE = 4; |
27 | static const int N_CUR_ALTITUDE = 8; |
26 | static const int N_CUR_ALTITUDE = 8; |
28 | static const int N_CUR_STATUS = 12; |
27 | static const int N_CUR_STATUS = 12; |
29 | 28 | ||
30 | static const int N_TAR_LONGITUDE = 13; //16 |
29 | static const int N_TAR_LONGITUDE = 13; //16 |
31 | static const int N_TAR_LATITUDE = 17; //20 |
30 | static const int N_TAR_LATITUDE = 17; //20 |
32 | static const int N_TAR_ALTITUDE = 21; //24 |
31 | static const int N_TAR_ALTITUDE = 21; //24 |
33 | static const int N_TAR_STATUS = 25; //28 |
32 | static const int N_TAR_STATUS = 25; //28 |
34 | static const int N_TAR_DISTANCE = 26; //32 |
33 | static const int N_TAR_DISTANCE = 26; //32 |
35 | static const int N_TAR_ANGLE = 28; //34 |
34 | static const int N_TAR_ANGLE = 28; //34 |
36 | 35 | ||
37 | static const int N_HOME_LONGITUDE = 30; //36 |
36 | static const int N_HOME_LONGITUDE = 30; //36 |
38 | static const int N_HOME_LATITUDE = 34; //40 |
37 | static const int N_HOME_LATITUDE = 34; //40 |
39 | static const int N_HOME_ALTITUDE = 38; //44 |
38 | static const int N_HOME_ALTITUDE = 38; //44 |
40 | static const int N_HOME_STATUS = 42; //48 |
39 | static const int N_HOME_STATUS = 42; //48 |
41 | static const int N_HOME_DISTANCE = 43; //52 |
40 | static const int N_HOME_DISTANCE = 43; //52 |
42 | static const int N_HOME_ANGLE = 45; //54 |
41 | static const int N_HOME_ANGLE = 45; //54 |
43 | 42 | ||
44 | static const int N_WP_INDEX = 47; //56 |
43 | static const int N_WP_INDEX = 47; //56 |
45 | static const int N_WP_NUMBER = 48; //57 |
44 | static const int N_WP_NUMBER = 48; //57 |
46 | 45 | ||
47 | static const int N_SATS_IN_USER = 49; //58 |
46 | static const int N_SATS_IN_USER = 49; //58 |
48 | static const int N_ALTIMETER = 50; //59 |
47 | static const int N_ALTIMETER = 50; //59 |
49 | static const int N_VARIOMETER = 52; //61 |
48 | static const int N_VARIOMETER = 52; //61 |
50 | static const int N_FLYING_TIME = 54; //63 |
49 | static const int N_FLYING_TIME = 54; //63 |
51 | static const int N_UBAT = 56; //65 |
50 | static const int N_UBAT = 56; //65 |
52 | static const int N_GROUND_SPEED = 57; //66 |
51 | static const int N_GROUND_SPEED = 57; //66 |
53 | static const int N_HEADING = 59; //68 |
52 | static const int N_HEADING = 59; //68 |
54 | static const int N_COMAPSS_HEADING = 61; //70 |
53 | static const int N_COMAPSS_HEADING = 61; //70 |
55 | static const int N_ANGLE_NICK = 63; //72 |
54 | static const int N_ANGLE_NICK = 63; //72 |
56 | static const int N_ANGLE_ROLL = 64; //73 |
55 | static const int N_ANGLE_ROLL = 64; //73 |
57 | static const int N_RC_QUALITY = 65; //74 |
56 | static const int N_RC_QUALITY = 65; //74 |
58 | static const int N_MK_FLAGS = 66; //75 |
57 | static const int N_MK_FLAGS = 66; //75 |
59 | static const int N_NC_FLAGS = 67; //76 |
58 | static const int N_NC_FLAGS = 67; //76 |
60 | static const int N_ERRORCODE = 68; //77 |
59 | static const int N_ERRORCODE = 68; //77 |
61 | 60 | ||
62 | 61 | ||
63 | // Positionen der Setting-Parameter |
62 | // Positionen der Setting-Parameter |
64 | /////////////////////////////////// |
63 | /////////////////////////////////// |
65 | static const int VERSION_SETTINGS = 74; |
64 | static const int VERSION_SETTINGS = 74; |
66 | 65 | ||
67 | static const int MaxParameter = 93; |
66 | static const int MaxParameter = 93; |
68 | 67 | ||
69 | static const int P_KANAL_GAS = 0; |
68 | static const int P_KANAL_GAS = 0; |
70 | static const int P_KANAL_GIER = 1; |
69 | static const int P_KANAL_GIER = 1; |
71 | static const int P_KANAL_NICK = 2; |
70 | static const int P_KANAL_NICK = 2; |
72 | static const int P_KANAL_ROLL = 3; |
71 | static const int P_KANAL_ROLL = 3; |
73 | static const int P_KANAL_POTI1 = 4; |
72 | static const int P_KANAL_POTI1 = 4; |
74 | static const int P_KANAL_POTI2 = 5; |
73 | static const int P_KANAL_POTI2 = 5; |
75 | static const int P_KANAL_POTI3 = 6; |
74 | static const int P_KANAL_POTI3 = 6; |
76 | static const int P_KANAL_POTI4 = 7; |
75 | static const int P_KANAL_POTI4 = 7; |
77 | static const int P_GLOBAL_CONF = 8; |
76 | static const int P_GLOBAL_CONF = 8; |
78 | static const int P_MIN_GAS = 9; |
77 | static const int P_MIN_GAS = 9; |
79 | 78 | ||
80 | static const int P_DRUCK_D = 10; |
79 | static const int P_DRUCK_D = 10; |
81 | static const int P_MAXHOEHE = 11; |
80 | static const int P_MAXHOEHE = 11; |
82 | static const int P_HOEHE_P = 12; |
81 | static const int P_HOEHE_P = 12; |
83 | static const int P_HOEHE_GAIN = 13; |
82 | static const int P_HOEHE_GAIN = 13; |
84 | static const int P_HOEHE_ACC = 14; |
83 | static const int P_HOEHE_ACC = 14; |
85 | static const int P_STICK_P = 15; |
84 | static const int P_STICK_P = 15; |
86 | static const int P_STICK_D = 16; |
85 | static const int P_STICK_D = 16; |
87 | static const int P_GIER_P = 17; |
86 | static const int P_GIER_P = 17; |
88 | static const int P_GAS_MIN = 18; |
87 | static const int P_GAS_MIN = 18; |
89 | static const int P_GAS_MAX = 19; |
88 | static const int P_GAS_MAX = 19; |
90 | 89 | ||
91 | static const int P_GYRO_ACC_FAKTOR = 20; |
90 | static const int P_GYRO_ACC_FAKTOR = 20; |
92 | static const int P_KOMPASS_WIRKUNG = 21; |
91 | static const int P_KOMPASS_WIRKUNG = 21; |
93 | static const int P_GYRO_P = 22; |
92 | static const int P_GYRO_P = 22; |
94 | static const int P_GYRO_I = 23; |
93 | static const int P_GYRO_I = 23; |
95 | static const int P_GYRO_D = 24; |
94 | static const int P_GYRO_D = 24; |
96 | static const int P_UNTERSPANNUNG = 25; |
95 | static const int P_UNTERSPANNUNG = 25; |
97 | static const int P_NOTGAS = 26; |
96 | static const int P_NOTGAS = 26; |
98 | static const int P_NOTGASZEIT = 27; |
97 | static const int P_NOTGASZEIT = 27; |
99 | static const int P_AUSRICHTUNG = 28; |
98 | static const int P_AUSRICHTUNG = 28; |
100 | static const int P_FAKTOR_I = 29; |
99 | static const int P_FAKTOR_I = 29; |
101 | 100 | ||
102 | static const int P_USER_1 = 30; |
101 | static const int P_USER_1 = 30; |
103 | static const int P_USER_2 = 31; |
102 | static const int P_USER_2 = 31; |
104 | static const int P_USER_3 = 32; |
103 | static const int P_USER_3 = 32; |
105 | static const int P_USER_4 = 33; |
104 | static const int P_USER_4 = 33; |
106 | static const int P_SERVO_NICK_CONT = 34; |
105 | static const int P_SERVO_NICK_CONT = 34; |
107 | static const int P_SERVO_NICK_COMP = 35; |
106 | static const int P_SERVO_NICK_COMP = 35; |
108 | static const int P_SERVO_NICK_MIN = 36; |
107 | static const int P_SERVO_NICK_MIN = 36; |
109 | static const int P_SERVO_NICK_MAX = 37; |
108 | static const int P_SERVO_NICK_MAX = 37; |
110 | static const int P_SERVO_NICK_REFR = 38; |
109 | static const int P_SERVO_NICK_REFR = 38; |
111 | static const int P_LOOP_GAS_LIMIT = 39; |
110 | static const int P_LOOP_GAS_LIMIT = 39; |
112 | 111 | ||
113 | static const int P_LOOP_THRESHOLD = 40; |
112 | static const int P_LOOP_THRESHOLD = 40; |
114 | static const int P_LOOP_HYSTERESE = 41; |
113 | static const int P_LOOP_HYSTERESE = 41; |
115 | static const int P_ACHS_KOPPLUNG1 = 42; |
114 | static const int P_ACHS_KOPPLUNG1 = 42; |
116 | static const int P_ACHS_KOPPLUNG2 = 43; |
115 | static const int P_ACHS_KOPPLUNG2 = 43; |
117 | static const int P_ACHS_GKOPPLUNG = 44; |
116 | static const int P_ACHS_GKOPPLUNG = 44; |
118 | static const int P_WINKEL_NICK = 45; |
117 | static const int P_WINKEL_NICK = 45; |
119 | static const int P_WINKEL_ROLL = 46; |
118 | static const int P_WINKEL_ROLL = 46; |
120 | static const int P_GYRO_ACC_ABGL = 47; |
119 | static const int P_GYRO_ACC_ABGL = 47; |
121 | static const int P_DRIFT_KOMP = 48; |
120 | static const int P_DRIFT_KOMP = 48; |
122 | static const int P_DYNAMIC_STAB = 49; |
121 | static const int P_DYNAMIC_STAB = 49; |
123 | 122 | ||
124 | static const int P_USER_5 = 50; |
123 | static const int P_USER_5 = 50; |
125 | static const int P_USER_6 = 51; |
124 | static const int P_USER_6 = 51; |
126 | static const int P_USER_7 = 52; |
125 | static const int P_USER_7 = 52; |
127 | static const int P_USER_8 = 53; |
126 | static const int P_USER_8 = 53; |
128 | static const int P_J16_BITMASK = 54; |
127 | static const int P_J16_BITMASK = 54; |
129 | static const int P_J16_TIMING = 55; |
128 | static const int P_J16_TIMING = 55; |
130 | static const int P_J17_BITMASK = 56; |
129 | static const int P_J17_BITMASK = 56; |
131 | static const int P_J17_TIMING = 57; |
130 | static const int P_J17_TIMING = 57; |
132 | static const int P_NAV_GPS_MODE = 58; |
131 | static const int P_NAV_GPS_MODE = 58; |
133 | static const int P_NAV_GPS_GAIN = 59; |
132 | static const int P_NAV_GPS_GAIN = 59; |
134 | 133 | ||
135 | static const int P_NAV_GPS_P = 60; |
134 | static const int P_NAV_GPS_P = 60; |
136 | static const int P_NAV_GPS_I = 61; |
135 | static const int P_NAV_GPS_I = 61; |
137 | static const int P_NAV_GPS_D = 62; |
136 | static const int P_NAV_GPS_D = 62; |
138 | static const int P_NAV_GPS_P_LIMIT = 63; |
137 | static const int P_NAV_GPS_P_LIMIT = 63; |
139 | static const int P_NAV_GPS_I_LIMIT = 64; |
138 | static const int P_NAV_GPS_I_LIMIT = 64; |
140 | static const int P_NAV_GPS_D_LIMIT = 65; |
139 | static const int P_NAV_GPS_D_LIMIT = 65; |
141 | static const int P_NAV_GPS_ACC = 66; |
140 | static const int P_NAV_GPS_ACC = 66; |
142 | static const int P_NAV_GPS_MIN = 67; |
141 | static const int P_NAV_GPS_MIN = 67; |
143 | static const int P_NAV_STICK_THRE = 68; |
142 | static const int P_NAV_STICK_THRE = 68; |
144 | static const int P_NAV_WIND_CORR = 69; |
143 | static const int P_NAV_WIND_CORR = 69; |
145 | 144 | ||
146 | static const int P_NAV_SPEED_COMP = 70; |
145 | static const int P_NAV_SPEED_COMP = 70; |
147 | static const int P_NAV_RADIUS = 71; |
146 | static const int P_NAV_RADIUS = 71; |
148 | static const int P_NAV_ANGLE_LIMIT = 72; |
147 | static const int P_NAV_ANGLE_LIMIT = 72; |
149 | static const int P_NAV_PH_LOGINTIME = 73; |
148 | static const int P_NAV_PH_LOGINTIME = 73; |
150 | static const int P_EXTERNAL = 74; |
149 | static const int P_EXTERNAL = 74; |
151 | static const int P_LOOP_CONFIG = 75; |
150 | static const int P_LOOP_CONFIG = 75; |
152 | static const int P_SERVO_NICK_COMPI = 76; |
151 | static const int P_SERVO_NICK_COMPI = 76; |
153 | static const int P_RESERVED = 77; |
152 | static const int P_RESERVED = 77; |
154 | static const int P_NAME = 81; |
153 | static const int P_NAME = 81; |
155 | #else |
- | |
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 | - | ||
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 | - | ||
207 | static const int VERSION_SETTINGS = 73; |
- | |
208 | - | ||
209 | static const int MaxParameter = 87; |
- | |
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; |
- | |
256 | static const int P_ACHS_KOPPLUNG1 = 41; |
- | |
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; |
- | |
284 | static const int P_NAV_ANGLE_LIMIT = 67; |
- | |
285 | - | ||
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; |
- | |
291 | #endif |
- | |
292 | 154 | ||
293 | #endif |
155 | #endif |
294 | 156 |