Subversion Repositories Projects

Rev

Rev 441 | Rev 449 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 441 Rev 442
Line 41... Line 41...
41
#include "wdg_Settings.h"
41
#include "wdg_Settings.h"
42
#include "dlg_LCD.h"
42
#include "dlg_LCD.h"
43
#include "dlg_Map.h"
43
#include "dlg_Map.h"
44
#include "dlg_MotorMixer.h"
44
#include "dlg_MotorMixer.h"
Line 45... Line -...
45
 
-
 
46
#include "../Classes/cConnection.h"
45
 
47
#include "../Classes/cSettings.h"
46
#include "../Classes/cSettings.h"
48
#include "../Classes/cKML_Server.h"
47
#include "../Classes/cKML_Server.h"
49
#include "../Classes/cQMK_Server.h"
48
#include "../Classes/cQMK_Server.h"
50
#include "../Classes/cAttitude.h"
49
#include "../Classes/cAttitude.h"
Line 66... Line 65...
66
public:
65
public:
67
      MKTool();
66
      MKTool();
68
      ~MKTool();
67
      ~MKTool();
Line 69... Line 68...
69
 
68
 
70
private:
-
 
71
    // Object für Kopter-Verbindung
69
private:
72
    //cConnection *o_Connection;
70
    // data-exchange from the MK
Line -... Line 71...
-
 
71
    KopterData * data;
73
    KopterData * data;
72
 
Line -... Line 73...
-
 
73
    // data-handler to send commands to MK
74
 
74
    Handler *handler;
Line 75... Line 75...
75
    Handler *handler;
75
 
76
 
76
    // connect to MK/disconnect from MK
Line 77... Line 77...
77
    Communication *com;
77
    Communication *com;
78
 
78
 
Line 79... Line 79...
79
    // Settings-Object (Programmeinstellungen)
79
    // settings object (program configuration)
80
    cSettings *Settings;
80
    cSettings *Settings;
Line 81... Line 81...
81
 
81
 
82
    // Settings-Widget (FC-Settings)
82
    // settings widget (FC settings)
Line 83... Line 83...
83
    wdg_Settings *f_Settings;
83
    wdg_Settings *f_Settings;
84
 
84
 
Line 85... Line 85...
85
    // HTTP-Server-Object für KML-Files
85
    // HTTP server object for KML files
86
    cKML_Server *KML_Server;
86
    cKML_Server *KML_Server;
Line 87... Line 87...
87
 
87
 
88
    // QMK-Serverobjekt
88
    // QMK-serverobjekt
Line 89... Line 89...
89
    cQMK_Server *QMK_Server;
89
    cQMK_Server *QMK_Server;
90
 
90
 
Line 91... Line 91...
91
    // LCD-Dialog
91
    // LCD dialog
92
    dlg_LCD *f_LCD;
92
    dlg_LCD *f_LCD;
93
 
93
 
Line 127... Line 127...
127
    // Ticker-Event-Array
127
    // Ticker-Event-Array
128
    //FIXME: move ticker to QTCommunication
128
    //FIXME: move ticker to QTCommunication
129
    //bool TickerEvent[MaxTickerEvents];
129
    //bool TickerEvent[MaxTickerEvents];
130
    //bool TickerDiv;
130
    //bool TickerDiv;
Line 131... Line 131...
131
 
131
 
132
    //Logger für CVS und andere
132
    // logger for CVS, MySQL and others
Line 133... Line 133...
133
    Logger * logger;
133
    Logger * logger;
134
 
134
 
Line 135... Line 135...
135
    // Softwareupdate
135
    // software update
136
    QProcess *Update;
136
    QProcess *Update;
Line 137... Line 137...
137
 
137
 
138
    // FC-Settings
138
    // FC-Settings
139
    int FCSettings[MaxParameter];
139
    int FCSettings[MaxParameter];
140
 
140
 
141
    // Programm Initialisieren
141
    // initialize program
142
    void init_GUI();
142
    void init_GUI();
143
    void init_Objects();
143
    void init_Objects();
Line 144... Line 144...
144
    void init_Connections();
144
    void init_Connections();
145
    void init_Arrays();
145
    void init_Arrays();
146
    void init_Plot();
146
    void init_Plot();
Line 147... Line 147...
147
    void init_Cockpit();
147
    void init_Cockpit();
148
 
148
 
Line 149... Line 149...
149
    // Daten-Plotter
149
    // plot data
150
    void update_Plot();
150
    void update_Plot();
151
    void config_Plot();
151
    void config_Plot();
Line 152... Line 152...
152
 
152
 
153
    void new_NaviData(sRxData RX);
153
    void new_NaviData(sRxData RX);
Line 154... Line 154...
154
    void parse_TargetKML();
154
    void parse_TargetKML();
155
 
155
 
156
    // Debugdaten anzeigen und speichern.
156
    // show and save debug/log
Line 197... Line 197...
197
 
197
 
198
    void slot_pb_HexFile();
198
    void slot_pb_HexFile();
Line 199... Line 199...
199
    void slot_pb_SendTarget();
199
    void slot_pb_SendTarget();
-
 
200
 
200
 
201
    // Default-Ticker
Line 201... Line 202...
201
    // Default-Ticker
202
    //FIXME: put this in libMK/QTCommunication.cpp
202
    void slot_Ticker();
203
    //void slot_Ticker();
203
 
204
 
Line 204... Line 205...
204
    // LCD-Seite vor / zurück
205
    // LCD page up / down
Line 205... Line 206...
205
    void slot_LCD_UP();
206
    void slot_LCD_UP();
206
    void slot_LCD_DOWN();
207
    void slot_LCD_DOWN();
207
 
208