29,6 → 29,7 |
#include "ui_dlg_Main.h" |
|
#include "dlg_MotorMixer.h" |
#include "dlg_MotorTest.h" |
|
#include "../Defines.h" |
#include "../TypeDefs.h" |
35,14 → 36,6 |
|
#include "../Classes/cSettings.h" |
|
#include "../../Global/Kopter.h" |
#include "../../Global/MK_Datatypes.h" |
#include "../../Global/Class_Input/Input.h" |
#include "../../Global/Class_Input/Input_TCP.h" |
#include "../../Global/Class_Input/Input_TTY.h" |
#include "../../Global/Class_HandlerIP/HandlerIP.h" |
#include "../../Global/Class_HandlerMK/HandlerMK.h" |
|
class dlg_Main : public QMainWindow, public Ui::dlg_Main_UI |
{ |
Q_OBJECT |
54,11 → 47,8 |
private: |
QTimer *o_Timer; |
|
// Input Device. |
Input *o_Input; |
|
// Info über die Hardware |
s_Hardware VersionInfo; |
s_Hardware gs_Version; |
|
// Settings-Object |
cSettings *o_Settings; |
66,6 → 56,9 |
// MotorMixer GUI |
dlg_MotorMixer *f_MotorMixer; |
|
// MotorTest GUI |
dlg_MotorTest *f_MotorTest; |
|
char c_Data[150]; |
|
// Programm-Initialisirungen |
75,10 → 68,6 |
void init_Directorys(); |
s_Directorys s_Dir; |
|
// Einkommende Datenpackete zerlegen. |
void parse_MK_Data(QString t_Data); |
void parse_IP_Data(QString t_Data); |
|
void set_LED(QToolButton *ToolButton, bool On = false); |
int get_Value(QComboBox *Combo); |
QComboBox *setCombo(QComboBox *Combo, int Wert); |
90,8 → 79,15 |
void slot_Timer(); |
|
void slot_ac_About(); |
void slot_ac_Toolbar(); |
|
void slot_ac_Connect(); |
void slot_ConnectionStatus(int li_Status); |
void slot_MK_Version(s_Hardware ls_Version); |
void slot_MK_ReadSettings(s_MK_Settings ps_MK_Settings); |
void slot_MK_WriteSettings(int pi_ID); |
void slot_MK_ReadMotorMixer(s_MK_Mixer ps_MK_MotorMixer); |
void slot_MK_WriteMotorMixer(int pi_ID); |
void slot_MK_PPMData(s_MK_PPM_Data ps_PPMData); |
|
void slot_ac_Write(); |
void slot_ac_Read(); |
99,14 → 95,10 |
void slot_ac_Load(); |
|
void slot_ac_MotorMixer(); |
void slot_ac_MotorTest(); |
|
void slot_PageChange(int Page); |
|
// Einkommende Datenpackete. |
void slot_Input_Data(QString t_Data); |
void slot_Input_Disconnected(int Error); |
void slot_Input_Connected(); |
|
void slot_LEDtoValue(); |
void slot_ValuetoLED16(int Wert); |
void slot_ValuetoLED17(int Wert); |