Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
157 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 GLOBAL_H
20
#define GLOBAL_H
21
 
22
#include <QString>
23
#include <QSize>
24
#include <QPoint>
25
#include <QColor>
26
 
27
static const int FC_VERSION = 8;
28
 
29
static const QString QA_NAME = "QMK-Groundstation";
30
static const QString QA_VERSION = "0.5.0";
31
static const QString QA_DATE = "05.10.2008";
32
static const QString QA_YEAR = "2008";
33
static const QString QA_AUTHOR = "Manuel Schrape";
34
static const QString QA_EMAIL  = "manuel.schrape@gmx.de";
35
 
36
 
37
static const QString QA_ABOUT =
38
    "<HTML>"
39
    "<p><b><font size=8>" + QA_NAME + "</font></b></p>"
40
    "<br />"
41
    "Version " + QA_VERSION + " - " + QA_DATE + ""
42
    "<br /><br />"
43
    "(C) " + QA_YEAR + " by " + QA_AUTHOR + " - "
44
    "<a href=\"mailto:" + QA_EMAIL + "\">" + QA_EMAIL + "</a> <br /><br />"
45
    "Groundstation-Programm f&uuml;r den Mikrokopter zum <br>Parametrieren und Debug-Werte anzeigen, aufzeichnen & Visualisieren."
46
    "</HTML>";
47
 
48
static const QString Def_AnalogNames[] = {"Integral Nick", "Integral Roll", "ACC Nick", "ACC Roll", "Gyro Gier", "Hoehen-Wert", "ACC Z", "GAS", "Kompass-Value", "Spannung", "Empfang", "Ersatzkompass", "Motor Vorne", "Motor Hinten", "Motor Links", "Motor Rechts", "Analog 16", "Distance", "OSD-Bar", "MK3Mag", "Servo", "Nick", "Roll", "Analog 23", "Analog 24",  "Analog 25",  "Analog 26",  "Analog 27",  "Analog 28",  "Analog 29", "GPS Nick", "GPS Roll"};
49
 
50
static const QRgb Def_Colors[] = {0x00FF0000, 0x0000FF00, 0x00FFFF00, 0x000000FF, 0x00FF00FF, 0x0000FFFF, 0x00FFFFFF, 0x00660000, 0x00006600, 0x00666600, 0x00000066, 0x00660066, 0x000066, 0x00666666, 0x00990000, 0x00009900, 0x00999900, 0x00000099, 0x00990099, 0x00009999, 0x00999999, 0x00CC0000, 0x0000CC00, 0x00CCCC00, 0x000000CC, 0x00CC00CC, 0x0000CCCC, 0x00CCCCCC, 0x0066FF99, 0x009966FF, 0x00FF9966, 0x0099FF66};
51
 
52
static const bool Def_Plot_Show[] = {1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0};
53
static const bool Def_Log[]       = {1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0};
54
 
55
static const int MaxAnalog    = 32;
56
static const int MaxPlot      = 50000;
57
static const int PlotWide     = 50;
58
 
59
static const int MaxParameter = 83;
60
 
61
static const int P_KANAL_GAS   = 0;
62
static const int P_KANAL_GIER  = 1;
63
static const int P_KANAL_NICK  = 2;
64
static const int P_KANAL_ROLL  = 3;
65
static const int P_KANAL_POTI1 = 4;
66
static const int P_KANAL_POTI2 = 5;
67
static const int P_KANAL_POTI3 = 6;
68
static const int P_KANAL_POTI4 = 7;
69
static const int P_GLOBAL_CONF = 8;
70
static const int P_MIN_GAS     = 9;
71
 
72
static const int P_DRUCK_D       = 10;
73
static const int P_MAXHOEHE      = 11;
74
static const int P_HOEHE_P       = 12;
75
static const int P_HOEHE_GAIN    = 13;
76
static const int P_HOEHE_ACC     = 14;
77
static const int P_STICK_P       = 15;
78
static const int P_STICK_D       = 16;
79
static const int P_GIER_P        = 17;
80
static const int P_GAS_MIN       = 18;
81
static const int P_GAS_MAX       = 19;
82
 
83
static const int P_GYRO_ACC_FAKTOR = 20;
84
static const int P_KOMPASS_WIRKUNG = 21;
85
static const int P_GYRO_P          = 22;
86
static const int P_GYRO_I          = 23;
87
static const int P_UNTERSPANNUNG   = 24;
88
static const int P_NOTGAS          = 25;
89
static const int P_NOTGASZEIT      = 26;
90
static const int P_AUSRICHTUNG     = 27;
91
static const int P_FAKTOR_I        = 28;
92
static const int P_USER_1          = 29;
93
 
94
static const int P_USER_2          = 30;
95
static const int P_USER_3          = 31;
96
static const int P_USER_4          = 32;
97
static const int P_SERVO_NICK_CONT = 33;
98
static const int P_SERVO_NICK_COMP = 34;
99
static const int P_SERVO_NICK_MIN  = 35;
100
static const int P_SERVO_NICK_MAX  = 36;
101
static const int P_SERVO_NICK_REFR = 37;
102
static const int P_LOOP_GAS_LIMIT  = 38;
103
static const int P_LOOP_THRESHOLD  = 39;
104
 
105
static const int P_LOOP_HYSTERESE  = 40;
106
static const int P_ACHS_KOPPLUNG   = 41;
107
static const int P_ACHS_GKOPPLUNG  = 42;
108
static const int P_WINKEL_NICK     = 43;
109
static const int P_WINKEL_ROLL     = 44;
110
static const int P_GYRO_ACC_ABGL   = 45;
111
static const int P_DRIFT_KOMP      = 46;
112
static const int P_DYNAMIC_STAB    = 47;
113
static const int P_USER_5          = 48;
114
static const int P_USER_6          = 49;
115
 
116
static const int P_USER_7          = 50;
117
static const int P_USER_8          = 51;
118
static const int P_J16_BITMASK     = 52;
119
static const int P_J16_TIMING      = 53;
120
static const int P_J17_BITMASK     = 54;
121
static const int P_J17_TIMING      = 55;
122
static const int P_NAV_GPS_MODE    = 56;
123
static const int P_NAV_GPS_GAIN    = 57;
124
static const int P_NAV_GPS_P       = 58;
125
static const int P_NAV_GPS_I       = 59;
126
 
127
static const int P_NAV_GPS_D        = 60;
128
static const int P_NAV_GPS_ACC      = 61;
129
static const int P_NAV_GPS_MIN      = 62;
130
static const int P_NAV_STICK_THRE   = 63;
131
static const int P_EXTERNAL         = 64;
132
static const int P_LOOP_CONFIG      = 65;
133
static const int P_SERVO_NICK_COMPI = 66;
134
static const int P_RESERVED         = 67;
135
static const int P_NAME             = 71;
136
 
137
struct set_TTY
138
{
139
    QString Port;
140
};
141
 
142
struct set_GUI
143
{
144
    bool   isMax;
145
    QSize  Size;
146
    QPoint Point;
147
};
148
 
149
struct set_DIR
150
{
151
    QString Logging;
152
    QString Parameter;
153
};
154
 
155
struct set_Analog
156
{
157
    QString   Name;
158
    bool      Log;
159
    bool      Plot;
160
    QColor    Color;
161
};
162
 
163
#endif