ArduCopterPidConfig.h 828 Bytes
Newer Older
1 2 3 4
#ifndef ARDUCOPTERPIDCONFIG_H
#define ARDUCOPTERPIDCONFIG_H

#include <QWidget>
5
#include "ui_ArduCopterPidConfig.h"
6

7
#include "AP2ConfigWidget.h"
8

9
class ArduCopterPidConfig : public AP2ConfigWidget
10 11 12 13 14 15
{
    Q_OBJECT
    
public:
    explicit ArduCopterPidConfig(QWidget *parent = 0);
    ~ArduCopterPidConfig();
16 17 18 19
private slots:
    void writeButtonClicked();
    void refreshButtonClicked();
    void parameterChanged(int uas, int component, QString parameterName, QVariant value);
20 21
    void lockCheckBoxClicked(bool checked);
    void stabilLockedChanged(double value);
22
private:
23
    bool m_pitchRollLocked;
24 25 26
    QList<QPair<int,QString> > m_ch6ValueToTextList;
    QList<QPair<int,QString> > m_ch78ValueToTextList;
    QMap<QString,QDoubleSpinBox*> m_nameToBoxMap;
27
    Ui::ArduCopterPidConfig ui;
28 29 30
};

#endif // ARDUCOPTERPIDCONFIG_H