diff --git a/src/PX4FirmwareUpgradeWorker.cc b/src/PX4FirmwareUpgradeWorker.cc index 690841aff33e09456f576a0dc0d129477bf883f3..5abd7d1a4093c6352098e3b97ad78ceed942961f 100644 --- a/src/PX4FirmwareUpgradeWorker.cc +++ b/src/PX4FirmwareUpgradeWorker.cc @@ -1,4 +1,4 @@ -#include +//#include #include #include "PX4FirmwareUpgradeWorker.h" diff --git a/src/PX4FirmwareUpgradeWorker.h b/src/PX4FirmwareUpgradeWorker.h index 873eadc357f2ccf139b8916e8204e9b1a0bb973f..c505133b29618aee0043c08c2f85951daaf800a0 100644 --- a/src/PX4FirmwareUpgradeWorker.h +++ b/src/PX4FirmwareUpgradeWorker.h @@ -2,7 +2,7 @@ #define PX4FIRMWAREUPGRADEWORKER_H #include -#include +//#include #include @@ -67,7 +67,7 @@ protected: private: SerialLink *link; bool insync; - QJsonDocument firmware; + //QJsonDocument firmware; }; #endif // PX4FIRMWAREUPGRADEWORKER_H diff --git a/src/apps/qupgrade/QUpgradeApp.cc b/src/apps/qupgrade/QUpgradeApp.cc index 52d68a57d0026bbd9d2be78ad64739ce6f244e20..c1a13ae53df7190af3fd38858e0f72a90cc25c4c 100644 --- a/src/apps/qupgrade/QUpgradeApp.cc +++ b/src/apps/qupgrade/QUpgradeApp.cc @@ -78,15 +78,15 @@ QUpgradeApp::QUpgradeApp(int &argc, char* argv[]) : QApplication(argc, argv) // Get PX4 upgrade widget and instantiate worker thread PX4FirmwareUpgradeWorker* worker = PX4FirmwareUpgradeWorker::putWorkerInThread(this); - connect(worker, SIGNAL(detectionStatusChanged(QString)), upgrader, SLOT(setDetectionStatusText(QString)), Qt::QueuedConnection); - connect(worker, SIGNAL(upgradeStatusChanged(QString)), upgrader, SLOT(setFlashStatusText(QString)), Qt::QueuedConnection); - connect(worker, SIGNAL(upgradeProgressChanged(int)), upgrader, SLOT(setFlashProgress(int)), Qt::QueuedConnection); - connect(worker, SIGNAL(validPortFound(QString)), upgrader, SLOT(setPortName(QString))); - connect(upgrader, SIGNAL(firmwareFileNameSet(QString)), worker, SLOT(loadFirmware(QString)), Qt::QueuedConnection); - connect(upgrader, SIGNAL(upgrade()), worker, SLOT(upgrade()), Qt::QueuedConnection); - connect(this, SIGNAL(lastWindowClosed()), worker, SLOT(abort()), Qt::QueuedConnection); - - worker->loadFirmware("/Users/user/src/Firmware/Images/px4io.bin"); +// connect(worker, SIGNAL(detectionStatusChanged(QString)), upgrader, SLOT(setDetectionStatusText(QString)), Qt::QueuedConnection); +// connect(worker, SIGNAL(upgradeStatusChanged(QString)), upgrader, SLOT(setFlashStatusText(QString)), Qt::QueuedConnection); +// connect(worker, SIGNAL(upgradeProgressChanged(int)), upgrader, SLOT(setFlashProgress(int)), Qt::QueuedConnection); +// connect(worker, SIGNAL(validPortFound(QString)), upgrader, SLOT(setPortName(QString))); +// connect(upgrader, SIGNAL(firmwareFileNameSet(QString)), worker, SLOT(loadFirmware(QString)), Qt::QueuedConnection); +// connect(upgrader, SIGNAL(upgrade()), worker, SLOT(upgrade()), Qt::QueuedConnection); +// connect(this, SIGNAL(lastWindowClosed()), worker, SLOT(abort()), Qt::QueuedConnection); + + worker->loadFirmware("/Users/lomeier/src/Firmware/Images/px4fmu.bin"); window->setWindowTitle(applicationName() + " " + applicationVersion()); window->show();