|
|
|
@ -301,7 +301,7 @@ void QGCPX4AirframeConfig::checkConfigState()
@@ -301,7 +301,7 @@ void QGCPX4AirframeConfig::checkConfigState()
|
|
|
|
|
// Reboot
|
|
|
|
|
//TODO right now this relies upon the above send & persist finishing before the reboot command is received...
|
|
|
|
|
|
|
|
|
|
unsigned pendingMax = 20; |
|
|
|
|
unsigned pendingMax = 17; |
|
|
|
|
|
|
|
|
|
qDebug() << "PENDING PARAMS REBOOT BEFORE" << pendingParams; |
|
|
|
|
|
|
|
|
@ -338,14 +338,6 @@ void QGCPX4AirframeConfig::checkConfigState()
@@ -338,14 +338,6 @@ void QGCPX4AirframeConfig::checkConfigState()
|
|
|
|
|
qDebug() << "CONNECT AIRFRAME"; |
|
|
|
|
LinkManager::instance()->connectAll(); |
|
|
|
|
} |
|
|
|
|
if (pendingParams == 15) { |
|
|
|
|
qDebug() << "DISCONNECT AIRFRAME"; |
|
|
|
|
LinkManager::instance()->disconnectAll(); |
|
|
|
|
} |
|
|
|
|
if (pendingParams == 16) { |
|
|
|
|
qDebug() << "CONNECT AIRFRAME"; |
|
|
|
|
LinkManager::instance()->connectAll(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (pendingParams < pendingMax) { |
|
|
|
|
progress->setValue(pendingParams); |
|
|
|
|