Subversion Repositories Projects

Rev

Rev 199 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 199 Rev 227
Line 31... Line 31...
31
 
31
 
32
#include <qwt_plot_curve.h>
32
#include <qwt_plot_curve.h>
33
#include <qwt_plot_grid.h>
33
#include <qwt_plot_grid.h>
34
#include <qwt_legend.h>
34
#include <qwt_legend.h>
-
 
35
#include <qwt_plot.h>
-
 
36
#include <qwt_compass.h>
-
 
37
#include <qwt_compass_rose.h>
-
 
38
#include <qwt_dial_needle.h>
35
#include <qwt_plot.h>
39
 
36
#include "ui_mktool.h"
40
#include "ui_mktool.h"
-
 
41
#include "wdg_Settings.h"
Line 37... Line 42...
37
#include "wdg_Settings.h"
42
#include "dlg_LCD.h"
38
 
43
 
39
#include "../SerialPort/ManageSerialPort.h"
44
#include "../SerialPort/ManageSerialPort.h"
-
 
45
#include "../Classes/cSettings.h"
-
 
46
#include "../Classes/cServer.h"
-
 
47
#include "../Classes/cQMK_Server.h"
-
 
48
#include "../Classes/cAttitude.h"
Line 40... Line 49...
40
#include "../cSettings.h"
49
#include "../Classes/cSpeedMeter.h"
Line 41... Line 50...
41
#include "../Classes/cServer.h"
50
 
42
 
51
 
Line 49... Line 58...
49
public:
58
public:
50
      MKTool();
59
      MKTool();
51
      ~MKTool();
60
      ~MKTool();
Line 52... Line 61...
52
 
61
 
-
 
62
private:
-
 
63
 
-
 
64
    int aa;
53
private:
65
 
Line 54... Line 66...
54
    bool AllowSend;
66
    bool AllowSend;
55
 
67
 
Line 60... Line 72...
60
    cSettings *Settings;
72
    cSettings *Settings;
Line 61... Line 73...
61
 
73
 
62
    // Settings-Widget (FC-Settings)
74
    // Settings-Widget (FC-Settings)
Line 63... Line 75...
63
    wdg_Settings *f_Settings;
75
    wdg_Settings *f_Settings;
64
 
76
 
Line -... Line 77...
-
 
77
    // HTTP-Server-Object für Google Earth
-
 
78
    cServer *Server;
-
 
79
 
-
 
80
    // QMK-Serverobjekt
-
 
81
    cQMK_Server *MyServer;
-
 
82
 
-
 
83
    // LCD-Dialog
-
 
84
    dlg_LCD *f_LCD;
-
 
85
 
65
    // HTTp-Server-Object für Google Earth
86
    //TCP-Socket
66
    cServer *Server;
87
    QTcpSocket *TcpSocket;
Line 67... Line 88...
67
 
88
 
68
    // Default-Ticker
89
    // Default-Ticker
Line 69... Line 90...
69
    QTimer *Ticker;
90
    QTimer *Ticker;
70
 
91
 
Line 71... Line 92...
71
    // Kopie der Tabs des Hauptfensters
92
    // Kopie der Tabs des Hauptfensters
72
    QWidget *TabWidgets[6];
93
    QWidget *TabWidgets[7];
Line 73... Line 94...
73
 
94
 
74
    // Analogwert-Beschreibungen
95
    // Analogwert-Beschreibungen
Line 75... Line 96...
75
    QLabel *lb_Analog[MaxAnalog];
96
    QLabel *lb_Analog[MaxAnalog];
76
 
97
 
77
    // Analogwerte
98
    // Analogwerte
78
    int AnalogData[MaxAnalog];
99
    int AnalogData[MaxAnalog];
Line -... Line 100...
-
 
100
 
-
 
101
    // Plots für die Analogwerte
-
 
102
    QwtPlotCurve *Plot[MaxAnalog];    
79
 
103
 
80
    // Plots für die Analogwerte
104
    // Datenspeicher für die Plots
81
    QwtPlotCurve *Plot[MaxAnalog];
105
    double aData[MaxAnalog][MaxPlot];
Line 82... Line 106...
82
 
106
    double aID[MaxPlot];
Line 122... Line 146...
122
    // Daten-Plotter
146
    // Daten-Plotter
123
    void update_Plot();
147
    void update_Plot();
124
    void config_Plot();
148
    void config_Plot();
Line 125... Line 149...
125
 
149
 
-
 
150
    void new_NaviData(sRxData RX);
Line 126... Line 151...
126
    void new_NaviData(sRxData RX);
151
//    void new_Debugdata();
127
 
152
 
128
    // Daten Senden, Empfangen und verarbeiten
153
    // Daten Senden, Empfangen und verarbeiten
Line 135... Line 160...
135
 
160
 
136
    // Programmeinstellungen speichern
161
    // Programmeinstellungen speichern
Line 137... Line 162...
137
    void set_Preferences();
162
    void set_Preferences();
-
 
163
 
-
 
164
private slots:
-
 
165
    void slot_QMKS_Connect();
-
 
166
    void slot_QMKS_Connected();
138
 
167
    void slot_QMKS_Disconnected(int Error);
139
private slots:
168
 
Line 140... Line 169...
140
    void slot_ac_Hardware();
169
    void slot_ac_Hardware();
Line 153... Line 182...
153
    void slot_ac_FastNavi();
182
    void slot_ac_FastNavi();
154
    void slot_ac_NoNavi();
183
    void slot_ac_NoNavi();
155
    void slot_ac_About();
184
    void slot_ac_About();
156
    void slot_ac_GetLabels();
185
    void slot_ac_GetLabels();
157
    void slot_ac_Motortest();
186
    void slot_ac_Motortest();
-
 
187
    void slot_ac_LCD();
158
    void slot_pb_HexFile();
188
    void slot_pb_HexFile();
Line 159... Line 189...
159
 
189
 
160
    // Default-Ticker
190
    // Default-Ticker