|
|
|
@ -247,7 +247,7 @@ void FirmwareUpgradeController::_foundBoard(bool firstAttempt, const QSerialPort
@@ -247,7 +247,7 @@ void FirmwareUpgradeController::_foundBoard(bool firstAttempt, const QSerialPort
|
|
|
|
|
// Radio always flashes latest firmware, so we can start right away without
|
|
|
|
|
// any further user input.
|
|
|
|
|
_startFlashWhenBootloaderFound = true; |
|
|
|
|
_startFlashWhenBootloaderFoundFirmwareIdentity = FirmwareIdentifier(ThreeDRRadio, |
|
|
|
|
_startFlashWhenBootloaderFoundFirmwareIdentity = FirmwareIdentifier(SiKRadio, |
|
|
|
|
StableFirmware, |
|
|
|
|
DefaultVehicleFirmware); |
|
|
|
|
} |
|
|
|
@ -311,19 +311,10 @@ void FirmwareUpgradeController::_initFirmwareHash()
@@ -311,19 +311,10 @@ void FirmwareUpgradeController::_initFirmwareHash()
|
|
|
|
|
#endif |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/////////////////////////////// 3dr radio firmwares ///////////////////////////////////////
|
|
|
|
|
FirmwareToUrlElement_t rg3DRRadioFirmwareArray[] = { |
|
|
|
|
{ ThreeDRRadio, StableFirmware, DefaultVehicleFirmware, "http://px4-travis.s3.amazonaws.com/SiK/stable/radio~hm_trp.ihx"} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// We build the maps for PX4 firmwares dynamically using the data below
|
|
|
|
|
for (auto& element : rgPX4FLowFirmwareArray) { |
|
|
|
|
_rgPX4FLowFirmware.insert(FirmwareIdentifier(element.stackType, element.firmwareType, element.vehicleType), element.url); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for (auto& element : rg3DRRadioFirmwareArray) { |
|
|
|
|
_rg3DRRadioFirmware.insert(FirmwareIdentifier(element.stackType, element.firmwareType, element.vehicleType), element.url); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// @brief Called when the findBootloader process is unable to sync to the bootloader. Moves the state
|
|
|
|
@ -341,8 +332,17 @@ QHash<FirmwareUpgradeController::FirmwareIdentifier, QString>* FirmwareUpgradeCo
@@ -341,8 +332,17 @@ QHash<FirmwareUpgradeController::FirmwareIdentifier, QString>* FirmwareUpgradeCo
|
|
|
|
|
case Bootloader::boardIDPX4Flow: |
|
|
|
|
_rgFirmwareDynamic = _rgPX4FLowFirmware; |
|
|
|
|
break; |
|
|
|
|
case Bootloader::boardID3DRRadio: |
|
|
|
|
_rgFirmwareDynamic = _rg3DRRadioFirmware; |
|
|
|
|
case Bootloader::boardIDSiKRadio1000: |
|
|
|
|
{ |
|
|
|
|
FirmwareToUrlElement_t element = { SiKRadio, StableFirmware, DefaultVehicleFirmware, "http://px4-travis.s3.amazonaws.com/SiK/stable/radio~hm_trp.ihx" }; |
|
|
|
|
_rgFirmwareDynamic.insert(FirmwareIdentifier(element.stackType, element.firmwareType, element.vehicleType), element.url); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case Bootloader::boardIDSiKRadio1060: |
|
|
|
|
{ |
|
|
|
|
FirmwareToUrlElement_t element = { SiKRadio, StableFirmware, DefaultVehicleFirmware, "https://px4-travis.s3.amazonaws.com/SiK/stable/radio~hb1060.ihx" }; |
|
|
|
|
_rgFirmwareDynamic.insert(FirmwareIdentifier(element.stackType, element.firmwareType, element.vehicleType), element.url); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
if (px4_board_name_map.contains(boardId)) { |
|
|
|
|