FlightModeConfig.h 879 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 9 10 11 12 13 14 15

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

#endif // FLIGHTMODECONFIG_H