Rev 442 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 442 | Rev 449 | ||
---|---|---|---|
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 "../typedefs.h" |
28 | #include "../typedefs.h" |
29 | #include "../global.h" |
29 | #include "../global.h" |
30 | #include "../libMK/Handler.h" |
30 | #include "../libMK/Handler.h" |
31 | 31 | ||
32 | class dlg_MotorMixer : public QDialog, public Ui::dlg_MotorMixer_UI |
32 | class dlg_MotorMixer : public QDialog, public Ui::dlg_MotorMixer_UI |
33 | { |
33 | { |
34 | Q_OBJECT |
34 | Q_OBJECT |
35 | 35 | ||
36 | public: |
36 | public: |
37 | dlg_MotorMixer(QWidget *parent = 0); |
37 | dlg_MotorMixer(QWidget *parent = 0); |
38 | void set_Objects(Handler *handler, cSettings *t_Settings); |
38 | void set_Objects(Handler *handler, cSettings *t_Settings); |
39 | void set_MotorConfig(sRxData RX); |
39 | // void set_MotorConfig(sRxData RX); |
40 | void read_Mixer(); |
40 | void read_Mixer(); |
41 | 41 | ||
42 | private: |
42 | private: |
43 | //Handler for MK-Communication |
43 | //Handler for MK-Communication |
44 | Handler *handler; |
44 | Handler *handler; |
45 | KopterData * data; |
45 | KopterData * data; |
46 | cSettings *o_Settings; |
46 | cSettings *o_Settings; |
47 | 47 | ||
48 | void set_MotorData(); |
48 | void set_MotorData(); |
49 | void get_MotorData(); |
49 | void get_MotorData(); |
50 | void save_settings(QSettings * Setting); |
50 | void save_settings(QSettings * Setting); |
51 | private slots: |
51 | private slots: |
52 | void slot_pb_READ(); |
52 | void slot_pb_READ(); |
53 | void slot_pb_WRITE(); |
53 | void slot_pb_WRITE(); |
54 | void slot_pb_LOAD(); |
54 | void slot_pb_LOAD(); |
55 | void slot_pb_SAVE(); |
55 | void slot_pb_SAVE(); |
56 | void slot_CheckValue(int Wert); |
56 | void slot_CheckValue(int Wert); |
57 | }; |
57 | }; |
58 | 58 | ||
59 | #endif // DLG_MOTORMIXER_H |
59 | #endif // DLG_MOTORMIXER_H |
60 | 60 |