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