Commit 4a359234 authored by Don Gagne's avatar Don Gagne

Make sure pluginReady before creating rc cal widget

parent 8b47c541
......@@ -154,6 +154,12 @@ void PX4RCCalibrationTest::init(void)
_autopilot = AutoPilotPluginManager::instance()->getInstanceForAutoPilotPlugin(UASManager::instance()->getActiveUAS());
QSignalSpy spyPlugin(_autopilot, SIGNAL(pluginReadyChanged(bool)));
if (!_autopilot->pluginReady()) {
QCOMPARE(spyPlugin.wait(10000), true);
// This will instatiate the widget with an active uas with ready parameters
_calWidget = new PX4RCCalibration();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment