label->setText("THIS VERSION OF QGROUNDCONTROL WAS BUILT WITHOUT QUPGRADE. To enable firmware upload support, checkout QUpgrade WITHIN the QGroundControl folder");
{QSerialPort::DeviceNotFoundError,"An error occurred while attempting to open a non-existing device."},
{QSerialPort::PermissionError,"An error occurred while attempting to open an already opened device by another process or a user not having enough permission and credentials to open."},
{QSerialPort::OpenError,"An error occurred while attempting to open an already opened device in this object."},
{QSerialPort::NotOpenError,"This error occurs when an operation is executed that can only be successfully performed if the device is open."},
{QSerialPort::ParityError,"Parity error detected by the hardware while reading data."},
{QSerialPort::FramingError,"Framing error detected by the hardware while reading data."},
{QSerialPort::BreakConditionError,"Break condition detected by the hardware on the input line."},
{QSerialPort::WriteError,"An I/O error occurred while writing the data."},
{QSerialPort::ReadError,"An I/O error occurred while reading the data."},
{QSerialPort::ResourceError,"An I/O error occurred when a resource becomes unavailable, e.g. when the device is unexpectedly removed from the system."},
{QSerialPort::UnsupportedOperationError,"The requested device operation is not supported or prohibited by the running operating system."},
staticconstchar*msgBegin="If you are currently connected to your Pixhawk board via QGroundControl, you must 'Disconnect' from the board. "
"If your board is connected via USB, you must unplug the USB cable.\n\n"
"Click 'Next' when these two steps are complete to begin upgrading.";
staticconstchar*msgBoardSearch="Plug in your board via USB now...";
staticconstchar*msgBoardNotFound="Unable to detect your board. If the board is currently connected via USB. Disconnect it, and click 'Try Again'.";
staticconstchar*msgBootloaderSearch="Searching for Bootloader...";
staticconstchar*msgBootloaderNotFound="Unable to connect to Bootloader. If the board is currently connected via USB. Disconnect it, and click 'Try Again'.";
staticconstchar*msgBootloaderError="An error occured while communicating with the Bootloader.";
staticconstchar*msgFirmwareSelect="Please select the firmware you would like to upload to the board from the dropdown to the right.";
staticconstchar*msgFirmwareBoardFlashing="Flashing new firmware onto board...";
staticconstchar*msgFirmwareBoardFlashError="A failure has occured while flashing the new firmware to your board. "
"This has left the board in an inconsistent state. "
"You should click 'Try Again' to attempt the upgrade process again.";
staticconstchar*msgFirmwareBoardVerifying="Verifying firmware on board...";
staticconstchar*msgFirmwareBoardVerifyError="Verification of flash memory on board failed. "
"This has left the board in an inconsistent state. "
"You should click 'Try Again' to attempt the upgrade process again.";
staticconstchar*msgFirmwareBoardUpgraded="Your board has been upgraded successfully.\n\nYou can now connect to your board via QGroundControl\n\nClick 'Try Again' to do another upgrade.";
staticconststateMachineEntryrgStateMachine[]={
//State Next command Cancel command Try Again command State Text
#define SELECT_FIRMWARE_LICENSE "By clicking Next you agree to the terms and disclaimer of the BSD open source license, as redistributed with the source code."
_ui->statusLabel->setText(tr("Firmware file has 0 length image"));
_setupState(upgradeStateDownloadFailed);
return;
}
if(b.count()!=(int)_imageSize){
_ui->statusLabel->setText(tr("Image size for decompressed image does not match stored image size: Expected(%1) Actual(%2)").arg(_imageSize).arg(b.count()));