UASControlParameters.h 1.36 KB
Newer Older
1 2 3 4 5 6 7 8 9
#ifndef UASCONTROLPARAMETERS_H
#define UASCONTROLPARAMETERS_H

#include <QWidget>
#include "UASManager.h"
#include "SlugsMAV.h"
#include <QTimer>
#include <QTabWidget>

10 11 12
namespace Ui
{
class UASControlParameters;
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
}

class UASControlParameters : public QWidget
{
    Q_OBJECT

public:
    explicit UASControlParameters(QWidget *parent = 0);
    ~UASControlParameters();

public slots:
    void changedMode(int mode);
    void activeUasSet(UASInterface* uas);
    void updateGlobalPosition(UASInterface*,double,double,double,quint64);
    void speedChanged(UASInterface*,double,double,double,quint64);
    void updateAttitude(UASInterface* uas, double roll, double pitch, double yaw, quint64 time);
    void setCommands();
    void getCommands();
31 32

    void setPassthrough();
33
    void updateMode(int uas,QString mode,QString description);
34
    void thrustChanged(UASInterface* uas,double throttle);
35 36 37 38 39 40 41 42

private:
    Ui::UASControlParameters *ui;
    QTimer* refreshTimerGet;
    UASInterface* activeUAS;
    double speed;
    double roll;
    double altitude;
43
    double throttle;
44 45
    QString mode;
    QString REDcolorStyle;
46 47
    QPointer<RadioCalibrationData> radio;
    LinkInterface* hilLink;
48
#ifdef MAVLINK_ENABLED_SLUGS
49 50
    mavlink_mid_lvl_cmds_t tempCmds;
    mavlink_ctrl_srfc_pt_t tempCtrl;
51
#endif
52 53 54
};

#endif // UASCONTROLPARAMETERS_H