Rev 674 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 674 | Rev 750 | ||
---|---|---|---|
1 | /*************************************************************************** |
1 | /*************************************************************************** |
2 | * Copyright (C) 2009 by Manuel Schrape * |
2 | * Copyright (C) 2009 by Manuel Schrape * |
3 | * manuel.schrape@gmx.de * |
3 | * manuel.schrape@gmx.de * |
4 | * * |
4 | * * |
5 | * This program is free software; you can redistribute it and/or modify * |
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 * |
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. * |
7 | * the Free Software Foundation; either version 2 of the License. * |
8 | * * |
8 | * * |
9 | * This program is distributed in the hope that it will be useful, * |
9 | * This program is distributed in the hope that it will be useful, * |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
12 | * GNU General Public License for more details. * |
12 | * GNU General Public License for more details. * |
13 | * * |
13 | * * |
14 | * You should have received a copy of the GNU General Public License * |
14 | * You should have received a copy of the GNU General Public License * |
15 | * along with this program; if not, write to the * |
15 | * along with this program; if not, write to the * |
16 | * Free Software Foundation, Inc., * |
16 | * Free Software Foundation, Inc., * |
17 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
17 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
18 | ***************************************************************************/ |
18 | ***************************************************************************/ |
19 | #ifndef DLG_MOTORMIXER_H |
19 | #ifndef DLG_MOTORMIXER_H |
20 | #define DLG_MOTORMIXER_H |
20 | #define DLG_MOTORMIXER_H |
21 | 21 | ||
22 | #include <QObject> |
22 | #include <QObject> |
23 | #include <QFileDialog> |
23 | #include <QFileDialog> |
24 | #include <QSettings> |
24 | #include <QSettings> |
25 | 25 | ||
26 | #include "ui_dlg_MotorMixer.h" |
26 | #include "ui_dlg_MotorMixer.h" |
27 | 27 | ||
28 | #include "../Classes/cSettings.h" |
28 | #include "../Classes/cSettings.h" |
29 | 29 | ||
30 | #include "../../Global/Kopter.h" |
30 | #include "../../Global/Kopter.h" |
31 | #include "../../Global/Global.h" |
31 | #include "../../Global/Global.h" |
32 | #include "../../Global/MK_Datatypes.h" |
32 | #include "../../Global/MK_Datatypes.h" |
33 | #include "../../Global/Class_Input/Input.h" |
- | |
34 | #include "../../Global/Class_Input/Input_TCP.h" |
- | |
35 | #include "../../Global/Class_HandlerMK/HandlerMK.h" |
33 | #include "../../Global/Class_HandlerMK/HandlerMK.h" |
36 | 34 | ||
37 | class dlg_MotorMixer : public QDialog, public Ui::dlg_MotorMixer_UI |
35 | class dlg_MotorMixer : public QDialog, public Ui::dlg_MotorMixer_UI |
38 | { |
36 | { |
39 | Q_OBJECT |
37 | Q_OBJECT |
40 | 38 | ||
41 | public: |
39 | public: |
42 | dlg_MotorMixer(QWidget *parent = 0); |
40 | dlg_MotorMixer(QWidget *parent = 0); |
43 | void set_Objects(Input *t_Input, cSettings *t_Settings, s_Directorys t_Dir); |
41 | void set_Objects(cSettings *t_Settings, s_Directorys t_Dir); |
44 | void set_MotorConfig(s_MK_Mixer t_Mixer); |
42 | void set_MotorConfig(s_MK_Mixer t_Mixer); |
45 | void read_Mixer(); |
43 | void read_Mixer(); |
46 | private: |
44 | private: |
47 | // Object für Kopter-Verbindung |
- | |
48 | Input *o_Input; |
- | |
49 | - | ||
50 | cSettings *o_Settings; |
45 | cSettings *o_Settings; |
51 | 46 | ||
52 | s_MK_Mixer MK_Mixer; |
47 | s_MK_Mixer MK_Mixer; |
53 | 48 | ||
54 | s_Directorys s_Dir; |
49 | s_Directorys s_Dir; |
55 | 50 | ||
56 | char c_Data[150]; |
51 | char c_Data[150]; |
57 | 52 | ||
58 | void set_MotorData(); |
53 | void set_MotorData(); |
59 | void get_MotorData(); |
54 | void get_MotorData(); |
60 | 55 | ||
61 | private slots: |
56 | private slots: |
62 | void slot_pb_READ(); |
57 | void slot_pb_READ(); |
63 | void slot_pb_WRITE(); |
58 | void slot_pb_WRITE(); |
64 | void slot_pb_LOAD(); |
59 | void slot_pb_LOAD(); |
65 | void slot_pb_SAVE(); |
60 | void slot_pb_SAVE(); |
66 | void slot_CheckValue(int Wert); |
61 | void slot_CheckValue(int Wert); |
- | 62 | ||
- | 63 | signals: |
|
- | 64 | void sig_SendData(QString ,int); |
|
- | 65 | ||
67 | }; |
66 | }; |
68 | 67 | ||
69 | #endif // DLG_MOTORMIXER_H |
68 | #endif // DLG_MOTORMIXER_H |
70 | 69 |