Browse Source

Delay for mission item sync (#3668)

QGC4.4
Don Gagne 9 years ago committed by GitHub
parent
commit
59ef1b3bd6
  1. 4
      src/qgcunittest/RadioConfigTest.cc

4
src/qgcunittest/RadioConfigTest.cc

@ -190,6 +190,10 @@ void RadioConfigTest::_init(MAV_AUTOPILOT firmwareType) @@ -190,6 +190,10 @@ void RadioConfigTest::_init(MAV_AUTOPILOT firmwareType)
_autopilot = qgcApp()->toolbox()->multiVehicleManager()->activeVehicle()->autopilotPlugin();
Q_ASSERT(_autopilot);
// This test is so quick that it tends to finish before the mission item protocol completes. This causes an error to pop up.
// So we wait a little to let mission items sync.
QTest::qWait(500);
// This will instatiate the widget with an active uas with ready parameters
_calWidget = new QGCQmlWidgetHolder(QString(), NULL);

Loading…
Cancel
Save