Subversion Repositories Projects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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