dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
configstabilizationwidget.h
Go to the documentation of this file.
1 
12 /*
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  * for more details.
22  *
23  * You should have received a copy of the GNU General Public License along
24  * with this program; if not, see <http://www.gnu.org/licenses/>
25  */
26 #ifndef CONFIGSTABILIZATIONWIDGET_H
27 #define CONFIGSTABILIZATIONWIDGET_H
28 
29 #include "ui_stabilization.h"
30 #include "../uavobjectwidgetutils/configtaskwidget.h"
33 #include "uavobjects/uavobject.h"
34 #include "stabilizationsettings.h"
35 #include <QWidget>
36 #include <QTimer>
37 #include <expocurve.h>
38 
40 {
41  Q_OBJECT
42 
43 public:
44  ConfigStabilizationWidget(QWidget *parent = nullptr);
46 
47 private:
48  Ui_StabilizationWidget *m_stabilization;
49 
50  UAVObject *manualControlSettings;
51 
52  bool updateInProgress;
53 
54  void updateGraphs();
55  void setDerivedControlsEnabled(bool enable);
56 
57 private slots:
58  void linkCheckBoxes(int value);
59  void ratesLink(int value);
60 
61  void processLinkedWidgets(QWidget *);
62  void setMaximums();
63  void derivedValuesChanged();
64  void sourceValuesChanged();
65 
66  void applyRateLimits();
67 
68  void hangtimeDurationChanged();
69  void hangtimeToggle(bool enabled);
70  void enableDerivedControls();
71  void disableDerivedControls();
72 };
73 
74 #endif // ConfigStabilizationWidget_H
ConfigStabilizationWidget(QWidget *parent=nullptr)