33,13 → 33,22 |
#include <qwt_plot_grid.h> |
#include <qwt_legend.h> |
#include <qwt_plot.h> |
#include <qwt_compass.h> |
#include <qwt_compass_rose.h> |
#include <qwt_dial_needle.h> |
|
#include "ui_mktool.h" |
#include "wdg_Settings.h" |
#include "dlg_LCD.h" |
|
#include "../SerialPort/ManageSerialPort.h" |
#include "../cSettings.h" |
#include "../Classes/cSettings.h" |
#include "../Classes/cServer.h" |
#include "../Classes/cQMK_Server.h" |
#include "../Classes/cAttitude.h" |
#include "../Classes/cSpeedMeter.h" |
|
|
class QextSerialPort; |
|
class MKTool : public QMainWindow, public Ui::dlg_mktool_UI |
51,6 → 60,9 |
~MKTool(); |
|
private: |
|
int aa; |
|
bool AllowSend; |
|
// Object für Serielport |
62,14 → 74,23 |
// Settings-Widget (FC-Settings) |
wdg_Settings *f_Settings; |
|
// HTTp-Server-Object für Google Earth |
// HTTP-Server-Object für Google Earth |
cServer *Server; |
|
// QMK-Serverobjekt |
cQMK_Server *MyServer; |
|
// LCD-Dialog |
dlg_LCD *f_LCD; |
|
//TCP-Socket |
QTcpSocket *TcpSocket; |
|
// Default-Ticker |
QTimer *Ticker; |
|
// Kopie der Tabs des Hauptfensters |
QWidget *TabWidgets[6]; |
QWidget *TabWidgets[7]; |
|
// Analogwert-Beschreibungen |
QLabel *lb_Analog[MaxAnalog]; |
78,7 → 99,7 |
int AnalogData[MaxAnalog]; |
|
// Plots für die Analogwerte |
QwtPlotCurve *Plot[MaxAnalog]; |
QwtPlotCurve *Plot[MaxAnalog]; |
|
// Datenspeicher für die Plots |
double aData[MaxAnalog][MaxPlot]; |
85,6 → 106,9 |
double aID[MaxPlot]; |
int NextPlot; |
|
AttitudeIndicator *Attitude; |
cSpeedMeter * SpeedMeter; |
|
// Ticker-Event-Array |
bool TickerEvent[MaxTickerEvents]; |
bool TickerDiv; |
124,6 → 148,7 |
void config_Plot(); |
|
void new_NaviData(sRxData RX); |
// void new_Debugdata(); |
|
// Daten Senden, Empfangen und verarbeiten |
void send_Data(char CMD, int Address, char Data[150],unsigned int Length, bool Resend = true); |
137,6 → 162,10 |
void set_Preferences(); |
|
private slots: |
void slot_QMKS_Connect(); |
void slot_QMKS_Connected(); |
void slot_QMKS_Disconnected(int Error); |
|
void slot_ac_Hardware(); |
void slot_rb_Hardware(); |
|
155,6 → 184,7 |
void slot_ac_About(); |
void slot_ac_GetLabels(); |
void slot_ac_Motortest(); |
void slot_ac_LCD(); |
void slot_pb_HexFile(); |
|
// Default-Ticker |