Subversion Repositories Projects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1517 - 1
/*****************************************************************************
2
 *   Copyright (C) 2008 Thomas Kaiser, thomas@ft-fanpage.de                  *
3
 *   Copyright (C) 2009 Peter "woggle" Mack, mac@denich.net                  *
4
 *   Copyright (C) 2011 Christian "Cebra" Brandtner, brandtner@brandtner.net *
5
 *   Copyright (C) 2011 Harald Bongartz                                      *
6
 *                                                                           *
7
 *   This program is free software; you can redistribute it and/or modify    *
8
 *   it under the terms of the GNU General Public License as published by    *
9
 *   the Free Software Foundation; either version 2 of the License.          *
10
 *                                                                           *
11
 *   This program is distributed in the hope that it will be useful,         *
12
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of          *
13
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
14
 *   GNU General Public License for more details.                            *
15
 *                                                                           *
16
 *   You should have received a copy of the GNU General Public License       *
17
 *   along with this program; if not, write to the                           *
18
 *   Free Software Foundation, Inc.,                                         *
19
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.               *
20
 *                                                                           *
21
 *                                                                           *
22
 *   Credits to:                                                             *
23
 *   Holger Buss & Ingo Busker from mikrokopter.de for the MK project + SVN  *
24
 *                          http://www.mikrokopter.de                        *
25
 *   Gregor "killagreg" Stobrawa for his version of the MK code              *
26
 *   Thomas Kaiser "thkais" for the original project. See                    *
27
 *                          http://www.ft-fanpage.de/mikrokopter/            *
28
 *                          http://forum.mikrokopter.de/topic-4061-1.html    *
29
 *   Claas Anders "CaScAdE" Rathje for providing the font and his C-OSD code *
30
 *                          http://www.mylifesucks.de/oss/c-osd/             *
31
 *   Harald Bongartz "HaraldB" for providing his Ideas and Code for usibility*
32
 *****************************************************************************/
33
 
34
 
35
#define PAGES 14
36
#define PARAM_COUNT 144
37
#define PARAM_LENGTH 15
38
#define PARAM_NUM_LANG 4
39
 
40
//           German          Englisch   Französisch   Holländisch
41
 
42
prog_char param_pages[PAGES][PARAM_NUM_LANG][PARAM_LENGTH]= // zeilen,zeichen+1
43
{
44
        {"Kanäle        ","Channel    ","Canaux     ","Kanaal        "},
45
        {"Konfiguration ","main       ","Config     ","Configuratie  "},
46
        {"Stick         ","stick      ","Manche     ","Stick         "},
47
        {"Looping       ","Looping    ","Looping    ","Looping       "},
48
        {"Höhe          ","Altitude   ","Altitude   ","Hoogte        "},
49
        {"Kamera        ","Camera     ","Camera     ","Camera        "},
50
        {"NaviCtrl      ","NaviCtrl   ","NaviCtrl   ","NaviCtrl      "},
51
        {"Ausgänge      ","Outputs    ","Sorties    ","Uitgangen     "},
52
        {"Verschiedenes ","Divers     ","Divers     ","Diversen      "},
53
        {"Gyro          ","Gyro       ","Gyro       ","Gyro          "},
54
        {"Benutzer      ","User       ","Parametres ","Gebruiker     "},
55
        {"Achskopplung  ","Coupl Axes ","Coupl Axes ","Koppeling Ass."},
56
        {"Mixer-Setup   ","Config Mix ","Config Mix ","Config. Mixer "},
57
        {"Easy Setup    ","Config Easy","Config Easy","Config. easy  "},
58
};
59
 
60
 
61
//Namen
62
prog_char  param_names[PARAM_COUNT][PARAM_NUM_LANG][PARAM_LENGTH]=
63
{
64
        // group 0 (kanaele) 1-15
65
 
66
        {"Gas           ","Throttle      ","Gaz           ","Gas           "},
67
        {"Gier          ","Gier          ","Lacet         ","Gier          "},
68
        {"Nick          ","Nick          ","Tangage       ","Nick          "},
69
        {"Roll          ","Roll          ","Roulis        ","Roll          "},
70
        {"Poti 1        ","Poti 1        ","Poti 1        ","Poti 1        "},
71
        {"Poti 2        ","Poti 2        ","Poti 2        ","Poti 2        "},
72
        {"Poti 3        ","Poti 3        ","Poti 3        ","Poti 3        "},
73
        {"Poti 4        ","Poti 4        ","Poti 4        ","Poti 4        "},
74
        {"Poti 5        ","Poti 5        ","Poti 5        ","Poti 5        "},
75
        {"Poti 6        ","Poti 6        ","Poti 6        ","Poti 6        "},
76
        {"Poti 7        ","Poti 7        ","Poti 7        ","Poti 7        "},
77
        {"Poti 8        ","Poti 8        ","Poti 8        ","Poti 8        "},
78
        {"Motor Sich.Sch","Mot.Safety Sw.","Mot.Safety Sw.","Mot.saf.schak."},
79
        {"Erw. Sig. Pr. ","Enh. Sig.Check","Recep Renforce","Uitg.Sig.Check"},
80
        {"Empfänger Typ ","Receiver Type ","Type Recepteur","Ontvang. Type "},
81
 
82
 
83
        // group 1 (main) 16-23
84
 
85
        {"Höhenregeler  ","Ctrl Altitude ","Ctrl Altitude ","Ctrl Hoogte   "},
86
        {"GPS           ","GPS           ","GPS           ","GPS           "},
87
        {"Kompass       ","Compass       ","Compas        ","Kompas        "},
88
        {"KompFest Ausr.","CompOrient.Fix","Maintien Cap  ","Kompas vast   "},
89
        {"Erw. Sig. Pr. ","Sens.RcvSigVal","Ctrl Ren Recep","ExtRec Signaal"},
90
        {"Achs(e.)koppl.","Axis Couping  ","Decouplage Axe","As koppeling   },
91
        {"Drehratenbegr.","RotRate limit.","Limit Vit. Rot","RotRate limit."},
92
        {"Heading Hold  ","Nick/Roll     ","Orient. Fixe  ","Koers vast    "},
93
 
94
 
95
        // group 2 (stick) 24-27
96
 
97
        {"Nick/Roll P   ","Nick/Roll P   ","Roul/Tang P   ","Nick/Roll P   "},
98
        {"Nick/Roll D   ","Nick/Roll D   ","Roul/Tang D   ","Nick/Roll D   "},
99
        {"Gier P        ","Gier P        ","Lacet P       ","Gier P        "},
100
        {"Externe Kontr.","Extern Ctrl   ","Ctrl Externe  ","Extern Control"},
101
 
102
 
103
        // group3 : (looping) 28-36
104
 
105
        {"Looping oben  ","Looping up    ","Looping Avant ","Looping omhoog"},
106
        {"Looping unten ","Looping down  ","Looping Arrier","Looping bened."},
107
        {"Looping links ","Looping left  ","Looping Gauche","Looping links "},
108
        {"Looping rechts","Looping right ","Looping Droite","Looping rechts"},
109
        {"Gas Limit     ","Throttle Limit","Limite Gaz    ","Gas Limiet    "},
110
        {"Ansprechschw. ","Seuil Reponse ","Seuil Reponse ","Drempelwaarde "},
111
        {"Hysterese     ","Hysteresis    ","Hysteresis    ","Hysterese     "},
112
        {"Umkehrp. Nick ","Nick Invers   ","Invers Roulis ","Nick geinvert."},
113
        {"Umkehrp. Roll ","Roll Invers   ","Invers Tangage","Roll geinvert."},
114
 
115
 
116
        // group 4 (hoehe) 37-50
117
 
118
        {"Höhenregelung ","Altitude Ctrl ","Ctrl Altitude ","Hoogte Control"},
119
        {"J:HBeg,N:Vario","Y:LimH,N:Vario","Y:LimH,N:Vario","Y:LimH,N:Vario"},
120
        {"Schalter f. H.","Switch f. High","Swith Hauteur ","Schak. Hoogte "},
121
        {"akust. Vario  ","acoustic Vario","Vario Acoustic","Akoest. Vario "},
122
        {"Sollhöhe      ","Setpoint      ","Hauteur Max   ","Gewenste hoogt"},
123
        {"Min. Gas      ","min. throttle ","Gaz Min       ","Minimaal gas  "},
124
        {"Höhe P        ","Altitude P    ","Altitude P    ","Hoogte P      "},
125
        {"Luftdruck D   ","Barometric D  ","Pression D    ","Barometr. D   "},
126
        {"Z-ACC         ","ACC Z         ","ACC Z         ","ACC Z         "},
127
        {"Max. Höhe     ","Max. High     ","Max. High     ","Max. hoogte   "},
128
        {"Verstärkung/R ","gain/rate     ","Gain/Frequence","Verst./rate   "},
129
        {"Schwebegas +/-","hoover varia. ","Var Vol Stat  ","hoover varia. "},
130
        {"GPS Z         ","GPS Z         ","GPS Z         ","GPS Z         "},
131
        {"Stick Neutr. P","stick neutr. P","Pos Neutre Man","stick neutr. P"},
132
 
133
 
134
        // group 5 : (kamera) 51-66
135
 
136
        {"Nick S. Anst. ","nick serv ctrl","Asserv Tangage","nick serv ctrl"},
137
        {"Nick Kompens. ","nick compens. ","Comp Tangage  ","nick compens. "},
138
        {"Nick Umkehren ","nick inv. dir.","Inverser Roul ","nick inv.rich."},
139
        {"Nick Servo min","nick servo min","Servo Min     ","nick servo min"},
140
        {"Nick Servo max","nick servo max","Servo Max     ","nick servo max"},
141
        {"Roll S. Anst. ","roll serv ctrl","Asserv Roulis ","roll serv ctrl"},
142
        {"Roll Kompens. ","roll compens. ","Comp Tangage  ","roll compens. "},
143
        {"Roll Umkehren ","roll inv. dir.","Inverser Tang ","roll omkeren  "},
144
        {"Roll Servo min","roll servo min","Servo Min     ","roll servo min"},
145
        {"Roll Servo max","roll servo max","Servo Max     ","roll servo max"},
146
        {"Anst. Geschw. ","servo refresh ","Taux Refresh  ","Servo refresh "},
147
        {"Manuelle Gesch","manuell Speed ","Vitesse Man.  ","Snelh.handbed."},
148
        {"Cam Richtung  ","Cam Orient    ","Cam Orient    ","Camera richt. "},
149
        {"Servo 3       ","Servo 3       ","Servo 3       ","Servo 3       "},
150
        {"Servo 4       ","Servo 4       ","Servo 4       ","Servo 4       "},
151
        {"Servo 5       ","Servo 5       ","Servo 5       ","Servo 5       "},
152
 
153
 
154
        // group 6 : (navictrl) 67-85
155
 
156
        {"GPS           ","enable GPS    ","Activer GPS   ","enable GPS    "},
157
        {"GPS Modus St. ","GPS mode contr","Def Mode GPS  ","GPS mode contr"},
158
        {"GPS Verstärk. ","GPS Gain      ","Gain GPS      ","GPS versterk. "},
159
        {"GPS St. Schw. ","GPS stick thre","Seuil Manche  ","GPS st. dremp."},
160
        {"Min. Sat.     ","Min. Sat.     ","Nbre Min. Sat.","Min. Sat.     "},
161
        {"GPS-P         ","GPS-P         ","GPS-P         ","GPS-P         "},
162
        {"GPS-I         ","GPS-I         ","GPS-I         ","GPS-I         "},
163
        {"GPS-D         ","GPS-D         ","GPS-D         ","GPS-D         "},
164
        {"P Limit       ","Limit  P      ","Limite P      ","Limiet  P     "},
165
        {"I Limit       ","Limit  I      ","Limite I      ","Limiet  I     "},
166
        {"D Limit       ","Limit  D      ","Limite D      ","Limiet  D     "},
167
        {"GPS Acc       ","GPS Acc       ","Accel GPS     ","GPS Acc       "},
168
        {"GPS Windkorr. ","GPS Wind Corr.","Correct Vent  ","GPS Wind Corr."},
169
        {"Bremswirkung  ","Speed compens.","Compens Vit   ","Remwerking    "},
170
        {"GPS max. Rad. ","GPS max.radius","Rayon GPS Max ","GPS max.radius"},
171
        {"GPS Winkel Li.","GPS angl.limit","Limit Angl GPS","GPS hoek lim. "},
172
        {"PH Login time ","PH login time ","Tps Memoris   ","PH login tijd "},
173
        {"Dynamic PH    ","Dynamic PH    ","Dynamic PH    ","Dynamische PH "},
174
        {"CH Höhe       ","CH High       ","CH High       ","CH Hoogte     "},
175
 
176
 
177
        // group 7 : (ausgaenge) 86-95
178
 
179
        {"LED1 Bitmaske ","Out1 Bitmask  ","Bitmask S1    ","Uitg1 Bitpatr."},
180
        {"     Timing   ","Out1 Timing   ","Horloge S1    ","Uitg1 Timing  "},
181
        {"     sofort an","Activ         ","Actif         ","Direct aan    "},
182
        {"     n.m.Motor","Act. wi. Motor","Actif Au Repos","Akt. motor uit"},
183
        {"LED2 Bitmaske ","Out2 Bitmask  ","Bitmask S2    ","Uitg2 Bitpatr."},
184
        {"     Timing   ","Out2 Timing   ","Horloge S2    ","Uitg2 Timing  "},
185
        {"     sofort an","Activ         ","Actif         ","Direct aan    "},
186
        {"     n.m.Motor","Act. wi. Motor","Actif Au Repos","Akt. motor uit"},
187
        {"LED1 Vmin.Warn","Out1 undervolt","Al Undervoltag","Uitg1 ondersp."},
188
        {"LED2 Vmin.Warn","Out2 undervolt","Al Undervoltag","Uitg2 ondersp."},
189
 
190
 
191
        // group 8 : (verschiedenes) 96-107
192
 
193
        {"Min. Gas      ","min. throttle ","Gaz Min.      ","minimaal gas  "},
194
        {"Max. Gas      ","max. throttle ","Gaz Max.      ","maximaal gas  "},
195
        {"Kompasswirkung","compass effect","Effet compas  ","Kompas effect "},
196
        {"Carefree St.  ","Carefree Ctrl ","Carefree Ctrl ","Carefree Ctrl "},
197
        {"Teachable Care","Teachable Care","Teachable Care","Teachable Care"},
198
        {"Unterspannung ","undervoltage  ","Sous Tension  ","Onderspanning "},
199
        {"Volt Referenz ","Volt Referenz ","Tension Ref   ","Ref. spanning "},
200
        {"Not Gas Zeit  ","Emerg.Thr.Time","Duree secours ","Nood gas tijd "},
201
        {"Not Gas       ","Emerg.Throttle","Gaz de secours","Nood gas      "},
202
        {"Fails. CH Time","Fails. CH Time","Fails. CH Time","Fails. CH Tijd"},
203
        {"Compass Error ","Compass Error ","Compass Error ","Kompas Error  "},
204
        {"k.Summer o Sen","Compass Error ","Son Abs Emett ","Kompas Error  "},
205
 
206
 
207
        // group 9 : (gyro) 108-120
208
 
209
        {"Gyro P        ","Gyro P        ","Gyro P        ","Gyro P        "},
210
        {"Gyro I        ","Gyro I        ","Gyro I        ","Gyro I        "},
211
        {"Gyro D        ","Gyro D        ","Gyro D        ","Gyro D        "},
212
        {"Gier P        ","Lacet P       ","Lacet P       ","Gier P        "},
213
        {"Gier I        ","Lacet I       ","Lacet I       ","Gier I        "},
214
        {"Dynamische St.","dynamic stabi.","Stab Dynamique","Dynamis. stab."},
215
        {"Drehratenbeg. ","RotRate limit.","Limit Dit Rota","Toerental lim."},
216
        {"ACC/Gyro Fak. ","ACC/Gyro Fact ","ACC/Gyro Fact ","ACC/Gyro Fact "},
217
        {"ACC/Gyro Komp.","Comp ACC/Gyro ","Comp ACC/Gyro ","Comp ACC/Gyro "},
218
        {"Hauptregler I ","Main I        ","Regul Princ I ","Hoofdregel. I "},
219
        {"Drifkompensat.","drift Compens.","Compens Deriv ","Drift compens."},
220
        {"Gyro stab.    ","Gyro stability","Gyro Stability","Gyro stabilit."},
221
        {"Motor smooth  ","Motor smooth  ","Motor Smooth  ","Motor smooth  "},
222
 
223
 
224
        // group 10: (benutzer) 121-128
225
 
226
        {"Parameter 1   ","Parameter 1   ","Parameter 1   ","Parameter 1   "},
227
        {"Parameter 2   ","Parameter 2   ","Parameter 2   ","Parameter 2   "},
228
        {"Parameter 3   ","Parameter 3   ","Parameter 3   ","Parameter 3   "},
229
        {"Parameter 4   ","Parameter 4   ","Parameter 4   ","Parameter 4   "},
230
        {"Parameter 5   ","Parameter 5   ","Parameter 5   ","Parameter 5   "},
231
        {"Parameter 6   ","Parameter 6   ","Parameter 6   ","Parameter 6   "},
232
        {"Parameter 7   ","Parameter 7   ","Parameter 7   ","Parameter 7   "},
233
        {"Parameter 8   ","Parameter 8   ","Parameter 8   ","Parameter 8   "},
234
 
235
 
236
        // group 11: (achskopplung) 129-132
237
 
238
        {"Achs(e.)koppl.","(De)Coupl Axes","(De)Coupl Axes","As koppeling  "},
239
        {"Gier pos. Kopp","Retroac lacet ","Retroac Lacet ","Gier pos. kop."},
240
        {"Nick/Roll Kopp","Retro roul/tan","Retro Roul/Tan","Nick/Roll kop."},
241
        {"Gier Korrektur","Correct lacet ","Correct Lacet ","Gier correctie"},
242
 
243
 
244
        // group 12: (mixer) 133
245
 
246
        {"Orientierung  ","Orientierung  ","Orientation   "},
247
 
248
 
249
        // group 13 (easy) 134-144
250
 
251
        {"Höhenregelung ","Altitude Ctrl ","Ctrl Altitude ","Hoogte Contr. "},
252
        {"Sollhöhe      ","Setpoint      ","Hauteur Max   ","Gewenst.hoogte"},
253
        {"Stick Neutr. P","stick neutr. P","Pos Neutre Man","Stick neutr. P"},
254
        {"GPS           ","enable GPS    ","Activer GPS   ","Enable GPS    "},
255
        {"GPS Modus St. ","GPS mode contr","Def mode GPS  ","GPS mode contr"},
256
        {"Dynamic PH    ","Dynamic PH    ","Dynamic PH    ","Dynamic PH    "},
257
        {"CH Höhe       ","CH High       ","CH High       ","CH hoogte     "},
258
        {"Carefree St.  ","Carefree Ctrl ","Carefree Ctrl ","Carefree Ctrl "},
259
        {"Teachable Care","Teachable Care","Teachable Care","Teachable Care"},
260
        {"Motor Sich.Sch","Mot.Safety Sw.","Mot.Safety Sw.","Mot.saf.schak."},
261
        {"Orientierung  ","Orientation   ","Orientierung  ","Orientatie    "},
262
 
263
};
264