Commit 3555ae74 authored by lm's avatar lm

Final fixes for parameterinterface

parent bc3e650c
......@@ -543,7 +543,6 @@ void UAS::requestParameters()
mavlink_msg_param_request_list_pack(mavlink->getSystemId(), mavlink->getComponentId(), &msg, this->getUASID(), 0);
// Send message twice to increase chance of reception
sendMessage(msg);
sendMessage(msg);
}
void UAS::writeParameters()
......
......@@ -33,6 +33,7 @@ ParameterInterface::~ParameterInterface()
void ParameterInterface::selectUAS(int index)
{
qDebug() << "SELECTING INDEX " << index << "SIZE:" << m_ui->stackedWidget->count();
m_ui->stackedWidget->setCurrentIndex(index);
m_ui->sensorSettings->setCurrentIndex(index);
curr = index;
......@@ -59,7 +60,7 @@ void ParameterInterface::addUAS(UASInterface* uas)
{
m_ui->sensorSettings->setCurrentWidget(sensor);
m_ui->stackedWidget->setCurrentWidget(param);
curr = uas->getUASID();
curr = 0;
}
}
......
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