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 | |||
246 | KeyOz | 22 | // Positionen der Navidaten im OSD-Datensatz |
23 | //////////////////////////////////////////// |
||
334 | KeyOz | 24 | |
25 | static const int N_VERSION = 0; |
||
26 | static const int N_CUR_LONGITUDE = 1; |
||
27 | static const int N_CUR_LATITUDE = 5; |
||
28 | static const int N_CUR_ALTITUDE = 9; |
||
29 | static const int N_CUR_STATUS = 13; |
||
30 | |||
31 | static const int N_TAR_LONGITUDE = 14; //16 |
||
32 | static const int N_TAR_LATITUDE = 18; //20 |
||
33 | static const int N_TAR_ALTITUDE = 22; //24 |
||
34 | static const int N_TAR_STATUS = 26; //28 |
||
35 | static const int N_TAR_DISTANCE = 27; //32 |
||
36 | static const int N_TAR_ANGLE = 29; //34 |
||
37 | |||
38 | static const int N_HOME_LONGITUDE = 31; //36 |
||
39 | static const int N_HOME_LATITUDE = 35; //40 |
||
40 | static const int N_HOME_ALTITUDE = 39; //44 |
||
41 | static const int N_HOME_STATUS = 43; //48 |
||
42 | static const int N_HOME_DISTANCE = 44; //52 |
||
43 | static const int N_HOME_ANGLE = 46; //54 |
||
44 | |||
45 | static const int N_WP_INDEX = 48; //56 |
||
46 | static const int N_WP_NUMBER = 49; //57 |
||
47 | |||
48 | static const int N_SATS_IN_USER = 50; //58 |
||
49 | static const int N_ALTIMETER = 51; //59 |
||
50 | static const int N_VARIOMETER = 53; //61 |
||
51 | static const int N_FLYING_TIME = 55; //63 |
||
52 | static const int N_UBAT = 57; //65 |
||
53 | static const int N_GROUND_SPEED = 58; //66 |
||
54 | static const int N_HEADING = 60; //68 |
||
55 | static const int N_COMAPSS_HEADING = 62; //70 |
||
56 | static const int N_ANGLE_NICK = 64; //72 |
||
57 | static const int N_ANGLE_ROLL = 65; //73 |
||
58 | static const int N_RC_QUALITY = 66; //74 |
||
59 | static const int N_MK_FLAGS = 67; //75 |
||
60 | static const int N_NC_FLAGS = 68; //76 |
||
61 | static const int N_ERRORCODE = 69; //77 |
||
62 | static const int N_OP_RADIUS = 70; //77 |
||
63 | static const int N_TOP_SPEED = 71; //77 |
||
64 | static const int N_HOLD_TIME = 73; //77 |
||
65 | |||
246 | KeyOz | 66 | // Positionen der Setting-Parameter |
67 | /////////////////////////////////// |
||
307 | KeyOz | 68 | |
69 | #ifdef _BETA_ |
||
481 | KeyOz | 70 | static const int VERSION_SETTINGS = 76; |
334 | KeyOz | 71 | static const int VERSION_OSD = 1; |
307 | KeyOz | 72 | static const int VERSION_MIXER = 1; |
73 | #else |
||
481 | KeyOz | 74 | static const int VERSION_SETTINGS = 76; |
337 | KeyOz | 75 | static const int VERSION_OSD = 1; |
307 | KeyOz | 76 | static const int VERSION_MIXER = 1; |
77 | #endif |
||
234 | KeyOz | 78 | |
307 | KeyOz | 79 | static const int MAXMOTOR = 12; |
80 | |||
481 | KeyOz | 81 | static const int MaxParameter = 98; |
234 | KeyOz | 82 | |
83 | static const int P_KANAL_GAS = 0; |
||
84 | static const int P_KANAL_GIER = 1; |
||
85 | static const int P_KANAL_NICK = 2; |
||
86 | static const int P_KANAL_ROLL = 3; |
||
87 | static const int P_KANAL_POTI1 = 4; |
||
88 | static const int P_KANAL_POTI2 = 5; |
||
89 | static const int P_KANAL_POTI3 = 6; |
||
90 | static const int P_KANAL_POTI4 = 7; |
||
91 | static const int P_GLOBAL_CONF = 8; |
||
92 | static const int P_MIN_GAS = 9; |
||
93 | |||
94 | static const int P_DRUCK_D = 10; |
||
95 | static const int P_MAXHOEHE = 11; |
||
96 | static const int P_HOEHE_P = 12; |
||
97 | static const int P_HOEHE_GAIN = 13; |
||
98 | static const int P_HOEHE_ACC = 14; |
||
99 | static const int P_STICK_P = 15; |
||
100 | static const int P_STICK_D = 16; |
||
101 | static const int P_GIER_P = 17; |
||
102 | static const int P_GAS_MIN = 18; |
||
103 | static const int P_GAS_MAX = 19; |
||
104 | |||
105 | static const int P_GYRO_ACC_FAKTOR = 20; |
||
106 | static const int P_KOMPASS_WIRKUNG = 21; |
||
107 | static const int P_GYRO_P = 22; |
||
108 | static const int P_GYRO_I = 23; |
||
109 | static const int P_GYRO_D = 24; |
||
110 | static const int P_UNTERSPANNUNG = 25; |
||
111 | static const int P_NOTGAS = 26; |
||
112 | static const int P_NOTGASZEIT = 27; |
||
113 | static const int P_AUSRICHTUNG = 28; |
||
114 | static const int P_FAKTOR_I = 29; |
||
115 | |||
116 | static const int P_USER_1 = 30; |
||
117 | static const int P_USER_2 = 31; |
||
118 | static const int P_USER_3 = 32; |
||
119 | static const int P_USER_4 = 33; |
||
120 | static const int P_SERVO_NICK_CONT = 34; |
||
121 | static const int P_SERVO_NICK_COMP = 35; |
||
122 | static const int P_SERVO_NICK_MIN = 36; |
||
123 | static const int P_SERVO_NICK_MAX = 37; |
||
481 | KeyOz | 124 | static const int P_SERVO_ROLL_CONT = 38; |
125 | static const int P_SERVO_ROLL_COMP = 39; |
||
234 | KeyOz | 126 | |
481 | KeyOz | 127 | static const int P_SERVO_ROLL_MIN = 40; |
128 | static const int P_SERVO_ROLL_MAX = 41; |
||
129 | static const int P_SERVO_REFR = 42; |
||
130 | static const int P_LOOP_GAS_LIMIT = 43; |
||
131 | static const int P_LOOP_THRESHOLD = 44; |
||
132 | static const int P_LOOP_HYSTERESE = 45; |
||
133 | static const int P_ACHS_KOPPLUNG1 = 46; |
||
134 | static const int P_ACHS_KOPPLUNG2 = 47; |
||
135 | static const int P_ACHS_GKOPPLUNG = 48; |
||
136 | static const int P_WINKEL_NICK = 49; |
||
234 | KeyOz | 137 | |
481 | KeyOz | 138 | static const int P_WINKEL_ROLL = 50; |
139 | static const int P_GYRO_ACC_ABGL = 51; |
||
140 | static const int P_DRIFT_KOMP = 52; |
||
141 | static const int P_DYNAMIC_STAB = 53; |
||
142 | static const int P_USER_5 = 54; |
||
143 | static const int P_USER_6 = 55; |
||
144 | static const int P_USER_7 = 56; |
||
145 | static const int P_USER_8 = 57; |
||
146 | static const int P_J16_BITMASK = 58; |
||
147 | static const int P_J16_TIMING = 59; |
||
234 | KeyOz | 148 | |
481 | KeyOz | 149 | static const int P_J17_BITMASK = 60; |
150 | static const int P_J17_TIMING = 61; |
||
151 | static const int P_NAV_GPS_MODE = 62; |
||
152 | static const int P_NAV_GPS_GAIN = 63; |
||
153 | static const int P_NAV_GPS_P = 64; |
||
154 | static const int P_NAV_GPS_I = 65; |
||
155 | static const int P_NAV_GPS_D = 66; |
||
156 | static const int P_NAV_GPS_P_LIMIT = 67; |
||
157 | static const int P_NAV_GPS_I_LIMIT = 68; |
||
158 | static const int P_NAV_GPS_D_LIMIT = 69; |
||
234 | KeyOz | 159 | |
481 | KeyOz | 160 | static const int P_NAV_GPS_ACC = 70; |
161 | static const int P_NAV_GPS_MIN = 71; |
||
162 | static const int P_NAV_STICK_THRE = 72; |
||
163 | static const int P_NAV_WIND_CORR = 73; |
||
164 | static const int P_NAV_SPEED_COMP = 74; |
||
165 | static const int P_NAV_RADIUS = 75; |
||
166 | static const int P_NAV_ANGLE_LIMIT = 76; |
||
167 | static const int P_NAV_PH_LOGINTIME = 77; |
||
168 | static const int P_EXTERNAL = 78; |
||
169 | static const int P_LOOP_CONFIG = 79; |
||
246 | KeyOz | 170 | |
481 | KeyOz | 171 | static const int P_SERVO_COMPI = 80; |
172 | static const int P_RESERVED = 81; |
||
173 | static const int P_NAME = 85; |
||
174 | |||
234 | KeyOz | 175 | #endif |