ApmSoftwareConfig.h 1021 Bytes
Newer Older
1 2 3 4 5
#ifndef APMSOFTWARECONFIG_H
#define APMSOFTWARECONFIG_H

#include <QWidget>
#include "ui_ApmSoftwareConfig.h"
6 7 8 9 10 11 12 13 14 15
#include "FlightModeConfig.h"
#include "BasicPidConfig.h"
#include "StandardParamConfig.h"
#include "GeoFenceConfig.h"
#include "FailSafeConfig.h"
#include "AdvancedParamConfig.h"
#include "ArduCopterPidConfig.h"

#include "UASInterface.h"
#include "UASManager.h"
16 17 18 19 20 21 22 23

class ApmSoftwareConfig : public QWidget
{
    Q_OBJECT
    
public:
    explicit ApmSoftwareConfig(QWidget *parent = 0);
    ~ApmSoftwareConfig();
24 25 26
private slots:
    void activateStackedWidget();
    void activeUASSet(UASInterface *uas);
27 28
private:
    Ui::ApmSoftwareConfig ui;
29 30 31 32 33 34 35 36
    BasicPidConfig *basicPidConfig;
    FlightModeConfig *flightConfig;
    StandardParamConfig *standardParamConfig;
    GeoFenceConfig *geoFenceConfig;
    FailSafeConfig *failSafeConfig;
    AdvancedParamConfig *advancedParamConfig;
    ArduCopterPidConfig *arduCoperPidConfig;
    QMap<QObject*,QWidget*> buttonToConfigWidgetMap;
37 38 39
};

#endif // APMSOFTWARECONFIG_H