Subversion Repositories Projects

Rev

Go to most recent revision | 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 GLOBAL_H
20
#define GLOBAL_H
21
 
22
#include <QString>
23
#include <QSize>
24
#include <QPoint>
25
#include <QColor>
26
#include <QBitArray>
27
 
28
#include "Parameter_Positions.h"
29
 
30
static const int FC_VERSION = 9;
31
 
32
static const QString QA_NAME = "QMK-Groundstation";
33
static const QString QA_VERSION = "0.5.4j";
34
static const QString QA_DATE = "23.11.2008";
35
static const QString QA_YEAR = "2008";
36
static const QString QA_AUTHOR = "Manuel Schrape";
37
static const QString QA_EMAIL  = "manuel.schrape@gmx.de";
38
 
39
 
40
static const QString QA_ABOUT =
41
    "<HTML>"
42
    "<p><b><font size=8>" + QA_NAME + "</font></b></p>"
43
    "<br />"
44
    "Version " + QA_VERSION + " - " + QA_DATE + ""
45
    "<br /><br />"
46
    "(C) " + QA_YEAR + " by " + QA_AUTHOR + " - "
47
    "<a href=\"mailto:" + QA_EMAIL + "\">" + QA_EMAIL + "</a> <br /><br />"
48
    "Groundstation-Programm f&uuml;r den Mikrokopter zum <br>Parametrieren und Debug-Werte anzeigen, aufzeichnen & Visualisieren."
49
    "<br /><br /> Dieses Programm wird unter den Bedingungen der GPL v2 ver&ouml;ffentlicht."
50
    "</HTML>";
51
 
52
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"};
53
 
54
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};
55
 
56
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};
57
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};
58
 
59
static const QString HardwareType[] = {"", "FlightCtrl", "NaviCtrl", "MK3Mag"};
60
 
61
 
62
static const int MaxTickerEvents = 5;
63
 
64
static const int MaxAnalog    = 32;
65
static const int MaxPlot      = 50000;
66
static const int PlotWide     = 80;
67
 
68
struct sMode
69
{
70
    int ID;
71
    QString Hardware;
72
    QString Version;
73
    QString Compatible;
74
};
75
 
76
struct sRxData
77
{
78
    char *Input;
79
    QString String;
80
    int Decode[150];
81
};
82
 
83
struct set_TTY
84
{
85
    QString Port;
86
};
87
 
88
struct set_GUI
89
{
90
    bool   isMax;
91
    QSize  Size;
92
    QPoint Point;
93
    QBitArray TabViews;
94
};
95
 
96
struct set_DIR
97
{
98
    QString Logging;
99
    QString Parameter;
100
};
101
 
102
struct set_Analog
103
{
104
    QString   Name;
105
    bool      Log;
106
    bool      Plot;
107
    QColor    Color;
108
};
109
 
110
#endif