FlightModeConfig.h 891 Bytes
Newer Older
1 2 3 4 5
#ifndef FLIGHTMODECONFIG_H
#define FLIGHTMODECONFIG_H

#include <QWidget>
#include "ui_FlightModeConfig.h"
6 7
#include "UASInterface.h"
#include "UASManager.h"
8
#include "AP2ConfigWidget.h"
9

10
class FlightModeConfig : public AP2ConfigWidget
11 12 13 14 15 16
{
    Q_OBJECT
    
public:
    explicit FlightModeConfig(QWidget *parent = 0);
    ~FlightModeConfig();
17
private slots:
18
    void activeUASSet(UASInterface *uas);
19
    void saveButtonClicked();
20 21 22
    void modeChanged(int sysId, QString status, QString description);
    void remoteControlChannelRawChanged(int chan,float val);
    void parameterChanged(int uas, int component, QString parameterName, QVariant value);
23
private:
24 25
    QMap<int,int> roverModeIndexToUiIndex;
    QMap<int,int> planeModeIndexToUiIndex;
26 27
    QMap<int,int> roverModeUiIndexToIndex;
    QMap<int,int> planeModeUiIndexToIndex;
28 29 30 31
    Ui::FlightModeConfig ui;
};

#endif // FLIGHTMODECONFIG_H