Rev 391 | Rev 440 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 391 | Rev 396 | ||
---|---|---|---|
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 | #include "../Classes/cSettings.h" |
27 | #include "../Classes/cSettings.h" |
28 | #include "../Classes/cConnection.h" |
28 | #include "../Classes/cConnection.h" |
29 | #include "../typedefs.h" |
29 | #include "../typedefs.h" |
30 | //#include "../Classes/ToolBox.h" |
30 | //#include "../Classes/ToolBox.h" |
31 | #include "../global.h" |
31 | #include "../global.h" |
- | 32 | #include "../com/Handler.h" |
|
32 | 33 | ||
33 | class dlg_MotorMixer : public QDialog, public Ui::dlg_MotorMixer_UI |
34 | class dlg_MotorMixer : public QDialog, public Ui::dlg_MotorMixer_UI |
34 | { |
35 | { |
35 | Q_OBJECT |
36 | Q_OBJECT |
36 | 37 | ||
37 | public: |
38 | public: |
38 | dlg_MotorMixer(QWidget *parent = 0); |
39 | dlg_MotorMixer(QWidget *parent = 0); |
39 | void set_Objects(cConnection *t_Connection, cSettings *t_Settings); |
40 | void set_Objects(Handler *handler, cSettings *t_Settings); |
40 | void set_MotorConfig(sRxData RX); |
41 | void set_MotorConfig(sRxData RX); |
41 | void read_Mixer(); |
42 | void read_Mixer(); |
42 | 43 | ||
43 | private: |
44 | private: |
44 | // Object für Kopter-Verbindung |
45 | //Handler for MK-Communication |
45 | cConnection *o_Connection; |
46 | Handler *handler; |
46 | 47 | ||
47 | cSettings *o_Settings; |
48 | cSettings *o_Settings; |
48 | 49 | ||
49 | char TX_Data[150]; |
50 | char TX_Data[150]; |
50 | 51 | ||
51 | int Motor[16][4]; |
52 | int Motor[16][4]; //vgl. typedefs.h |
52 | QString MixerName; |
53 | QString MixerName; |
53 | int MixerVersion; |
54 | int MixerVersion; |
54 | 55 | ||
55 | void set_MotorData(); |
56 | void set_MotorData(); |
56 | void get_MotorData(); |
57 | void get_MotorData(); |
57 | int get_MotorConfig(); |
- | |
58 | 58 | ||
59 | private slots: |
59 | private slots: |
60 | void slot_pb_READ(); |
60 | void slot_pb_READ(); |
61 | void slot_pb_WRITE(); |
61 | void slot_pb_WRITE(); |
62 | void slot_pb_LOAD(); |
62 | void slot_pb_LOAD(); |
63 | void slot_pb_SAVE(); |
63 | void slot_pb_SAVE(); |
64 | void slot_CheckValue(int Wert); |
64 | void slot_CheckValue(int Wert); |
65 | }; |
65 | }; |
66 | 66 | ||
67 | #endif // DLG_MOTORMIXER_H |
67 | #endif // DLG_MOTORMIXER_H |
68 | 68 |