6#include <QtCore/QObject>
33 void status (
const QString& statusText);
40 void _startFindBoardLoop(
void);
43 void _findBoardOnce (
void);
44 void _updateProgress (
int curr,
int total) { emit
updateProgress(curr, total); }
54 QTimer* _findBoardTimer =
nullptr;
56 bool _foundBoard =
false;
57 bool _boardIsSiKRadio =
false;
58 bool _findBoardFirstAttempt =
true;
105 void _foundBoard (
bool firstAttempt,
const QGCSerialPortInfo& portInfo,
int type, QString name) { emit
foundBoard(firstAttempt, portInfo, type, name); }
107 void _boardGone (
void) { emit
boardGone(); }
108 void _foundBoardInfo (
int bootloaderVersion,
int boardID,
int flashSize) { emit
foundBoardInfo(bootloaderVersion, boardID, flashSize); }
110 void _status (
const QString& statusText) { emit
status(statusText); }
116 void _updateProgress(
int curr,
int total) { emit
updateProgress(curr, total); }
119 QThread* _workerThread =
nullptr;
Bootloader Utility routines. Works with PX4 and 3DR Radio bootloaders.
Support for Intel Hex firmware file.
Provides methods to interact with the bootloader. The commands themselves are signalled across to PX4...
~PX4FirmwareUpgradeThreadController(void)
void _rebootOnThread(void)
void updateProgress(int curr, int total)
void _flashOnThread(void)
void _startFindBoardLoopOnThread(void)
void reboot(void)
Sends a reboot command to the bootloader.
void _initThreadWorker(void)
void error(const QString &errorString)
void startFindBoardLoop(void)
Begins the process of searching for a supported board connected to any serial port....
void flash(const FirmwareImage *image)
void foundBoard(bool firstAttempt, const QGCSerialPortInfo &portInfo, int boardType, QString boardName)
void status(const QString &status)
void foundBoardInfo(int bootloaderVersion, int boardID, int flashSize)
const FirmwareImage * image(void)
Used to run bootloader commands on a separate thread. These routines are mainly meant to to be called...
void foundBoard(bool firstAttempt, const QGCSerialPortInfo &portInfo, int type, QString boardName)
void error(const QString &errorString)
void foundBoardInfo(int bootloaderVersion, int boardID, int flashSize)
~PX4FirmwareUpgradeThreadWorker()
void status(const QString &statusText)
void updateProgress(int curr, int total)