PX4FirmwareUpgrader.h 720 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
#ifndef PX4FIRMWAREUPGRADER_H
#define PX4FIRMWAREUPGRADER_H

#include <QWidget>
#include <QTimer>

#include <SerialLink.h>

namespace Ui {
class PX4FirmwareUpgrader;
}

class PX4FirmwareUpgrader : public QWidget
{
    Q_OBJECT
    
public:
    PX4FirmwareUpgrader(QWidget *parent = 0);
    ~PX4FirmwareUpgrader();

public slots:

    void setDetectionStatusText(const QString &text);

    void setFlashStatusText(const QString &text);

    void setFlashProgress(int percent);

    void selectFirmwareFile();

    void setPortName(const QString &portname);

signals:
    void firmwareFileNameSet(const QString &fileName);
    void upgrade();

private:
    Ui::PX4FirmwareUpgrader *ui;
};

#endif // PX4FIRMWAREUPGRADER_H