QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4FirmwareUpgradeThreadController Class Reference

Provides methods to interact with the bootloader. The commands themselves are signalled across to PX4FirmwareUpgradeThreadWorker so that they run on the separate thread. More...

#include <PX4FirmwareUpgradeThread.h>

+ Inheritance diagram for PX4FirmwareUpgradeThreadController:
+ Collaboration diagram for PX4FirmwareUpgradeThreadController:

Signals

void foundBoard (bool firstAttempt, const QGCSerialPortInfo &portInfo, int boardType, QString boardName)
 
void noBoardFound (void)
 
void boardGone (void)
 
void foundBoardInfo (int bootloaderVersion, int boardID, int flashSize)
 
void error (const QString &errorString)
 
void status (const QString &status)
 
void eraseStarted (void)
 
void eraseComplete (void)
 
void flashComplete (void)
 
void updateProgress (int curr, int total)
 
void _initThreadWorker (void)
 
void _startFindBoardLoopOnThread (void)
 
void _rebootOnThread (void)
 
void _flashOnThread (void)
 
void _cancel (void)
 

Public Member Functions

 PX4FirmwareUpgradeThreadController (QObject *parent=nullptr)
 
 ~PX4FirmwareUpgradeThreadController (void)
 
void startFindBoardLoop (void)
 Begins the process of searching for a supported board connected to any serial port. This will continue until cancelFind is called. Signals foundBoard and boardGone as boards come and go.
 
void cancel (void)
 
void reboot (void)
 Sends a reboot command to the bootloader.
 
void flash (const FirmwareImage *image)
 
const FirmwareImageimage (void)
 

Detailed Description

Provides methods to interact with the bootloader. The commands themselves are signalled across to PX4FirmwareUpgradeThreadWorker so that they run on the separate thread.

Definition at line 64 of file PX4FirmwareUpgradeThread.h.

Constructor & Destructor Documentation

◆ PX4FirmwareUpgradeThreadController()

◆ ~PX4FirmwareUpgradeThreadController()

PX4FirmwareUpgradeThreadController::~PX4FirmwareUpgradeThreadController ( void  )

Definition at line 220 of file PX4FirmwareUpgradeThread.cc.

Member Function Documentation

◆ _cancel

void PX4FirmwareUpgradeThreadController::_cancel ( void  )
signal

◆ _flashOnThread

void PX4FirmwareUpgradeThreadController::_flashOnThread ( void  )
signal

◆ _initThreadWorker

void PX4FirmwareUpgradeThreadController::_initThreadWorker ( void  )
signal

◆ _rebootOnThread

void PX4FirmwareUpgradeThreadController::_rebootOnThread ( void  )
signal

◆ _startFindBoardLoopOnThread

void PX4FirmwareUpgradeThreadController::_startFindBoardLoopOnThread ( void  )
signal

◆ boardGone

void PX4FirmwareUpgradeThreadController::boardGone ( void  )
signal

◆ cancel()

void PX4FirmwareUpgradeThreadController::cancel ( void  )

Definition at line 234 of file PX4FirmwareUpgradeThread.cc.

References _cancel().

Referenced by FirmwareUpgradeController::cancel().

◆ eraseComplete

void PX4FirmwareUpgradeThreadController::eraseComplete ( void  )
signal

◆ eraseStarted

void PX4FirmwareUpgradeThreadController::eraseStarted ( void  )
signal

◆ error

void PX4FirmwareUpgradeThreadController::error ( const QString &  errorString)
signal

◆ flash()

void PX4FirmwareUpgradeThreadController::flash ( const FirmwareImage image)

Definition at line 240 of file PX4FirmwareUpgradeThread.cc.

References _flashOnThread(), and image().

◆ flashComplete

void PX4FirmwareUpgradeThreadController::flashComplete ( void  )
signal

◆ foundBoard

void PX4FirmwareUpgradeThreadController::foundBoard ( bool  firstAttempt,
const QGCSerialPortInfo portInfo,
int  boardType,
QString  boardName 
)
signal

◆ foundBoardInfo

void PX4FirmwareUpgradeThreadController::foundBoardInfo ( int  bootloaderVersion,
int  boardID,
int  flashSize 
)
signal

◆ image()

const FirmwareImage * PX4FirmwareUpgradeThreadController::image ( void  )
inline

Definition at line 83 of file PX4FirmwareUpgradeThread.h.

Referenced by flash().

◆ noBoardFound

void PX4FirmwareUpgradeThreadController::noBoardFound ( void  )
signal

◆ reboot()

void PX4FirmwareUpgradeThreadController::reboot ( void  )
inline

Sends a reboot command to the bootloader.

Definition at line 79 of file PX4FirmwareUpgradeThread.h.

References _rebootOnThread().

◆ startFindBoardLoop()

void PX4FirmwareUpgradeThreadController::startFindBoardLoop ( void  )

Begins the process of searching for a supported board connected to any serial port. This will continue until cancelFind is called. Signals foundBoard and boardGone as boards come and go.

Definition at line 228 of file PX4FirmwareUpgradeThread.cc.

References _startFindBoardLoopOnThread().

◆ status

void PX4FirmwareUpgradeThreadController::status ( const QString &  status)
signal

◆ updateProgress

void PX4FirmwareUpgradeThreadController::updateProgress ( int  curr,
int  total 
)
signal

The documentation for this class was generated from the following files: