Commit 3386bc7e authored by Lorenz Meier's avatar Lorenz Meier

Hiding airspeed calib for multicopters

parent 4e118908
......@@ -340,8 +340,16 @@ void QGCPX4SensorCalibration::setActiveUAS(UASInterface* uas)
connect(uas, SIGNAL(textMessageReceived(int,int,int,QString)), this, SLOT(handleTextMessage(int,int,int,QString)));
connect(uas, SIGNAL(parameterChanged(int,int,QString,QVariant)), this, SLOT(parameterChanged(int,int,QString,QVariant)));
connect(uas, SIGNAL(systemSpecsChanged(int)), this, SLOT(updateSystemSpecs(int)));
activeUAS = uas;
updateSystemSpecs(uas->getUASID());
}
void QGCPX4SensorCalibration::updateSystemSpecs(int id)
{
Q_UNUSED(id);
if (activeUAS->isRotaryWing()) {
// Users are confused by the config button
ui->diffPressureButton->hide();
......
......@@ -23,6 +23,7 @@ public slots:
* @param uas the current active UAS
*/
void setActiveUAS(UASInterface* uas);
/**
* @brief Handle text message from current active UAS
* @param uasid
......@@ -32,6 +33,12 @@ public slots:
*/
void handleTextMessage(int uasid, int componentid, int severity, QString text);
/**
* @brief Update system specs / properties
* @param id the UID of the aircraft
*/
void updateSystemSpecs(int id);
void gyroButtonClicked();
void magButtonClicked();
void accelButtonClicked();
......
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