Commit 8fd1afc5 authored by Lorenz Meier's avatar Lorenz Meier

Fixed XPlane 9

parent 105d1d6c
......@@ -41,5 +41,11 @@ void QGCHilConfiguration::on_simComboBox_currentIndexChanged(int index)
hxpconf->show();
ui->simulatorConfigurationDockWidget->setWidget(hxpconf);
// Select correct version of XPlane
QGCXPlaneLink* xplane = dynamic_cast<QGCXPlaneLink*>(mav->getHILSimulation());
if (xplane)
{
xplane->setVersion((index == 2) ? 10 : 9);
}
}
}
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