forked from mavlink/qgroundcontrol
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of APM2.5 Firmware loading config screen via Avrdude
- Loading branch information
1 parent
95e4e9b
commit 56efe88
Showing
50 changed files
with
18,571 additions
and
7 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#ifndef APMFIRMWARECONFIG_H | ||
#define APMFIRMWARECONFIG_H | ||
|
||
#include <QWidget> | ||
#include <QNetworkAccessManager> | ||
#include <QNetworkRequest> | ||
#include <QNetworkReply> | ||
#include <QDebug> | ||
#include <QTemporaryFile> | ||
#include <QProcess> | ||
#include "qserialport.h" | ||
#include "ui_ApmFirmwareConfig.h" | ||
#include "ApmFirmwareStatus.h" | ||
|
||
class ApmFirmwareConfig : public QWidget | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit ApmFirmwareConfig(QWidget *parent = 0); | ||
~ApmFirmwareConfig(); | ||
private slots: | ||
void firmwareListFinished(); | ||
void firmwareListError(QNetworkReply::NetworkError error); | ||
void burnButtonClicked(); | ||
void betaFirmwareButtonClicked(); | ||
void downloadFinished(); | ||
void firmwareProcessFinished(int status); | ||
void firmwareProcessReadyRead(); | ||
void firmwareProcessError(QProcess::ProcessError error); | ||
private: | ||
ApmFirmwareStatus *firmwareStatus; | ||
QTemporaryFile *m_tempFirmwareFile; | ||
QNetworkAccessManager *m_networkManager; | ||
void requestFirmwares(bool beta); | ||
bool stripVersionFromGitReply(QString url,QString reply,QString type,QString stable,QString *out); | ||
bool m_betaFirmwareChecked; | ||
QMap<QPushButton*,QString> m_buttonToUrlMap; | ||
Ui::ApmFirmwareConfig ui; | ||
class FirmwareDef | ||
{ | ||
public: | ||
QString url; | ||
QString url2560; | ||
QString url25602; | ||
QString urlpx4; | ||
QString type; | ||
QString name; | ||
QString desc; | ||
int version; | ||
}; | ||
QList<FirmwareDef> m_firmwareList; | ||
}; | ||
|
||
#endif // APMFIRMWARECONFIG_H |
Oops, something went wrong.