Browse Source

Hiding airspeed calib for multicopters

QGC4.4
Lorenz Meier 11 years ago
parent
commit
3386bc7e5d
  1. 8
      src/ui/px4_configuration/QGCPX4SensorCalibration.cc
  2. 7
      src/ui/px4_configuration/QGCPX4SensorCalibration.h

8
src/ui/px4_configuration/QGCPX4SensorCalibration.cc

@ -340,8 +340,16 @@ void QGCPX4SensorCalibration::setActiveUAS(UASInterface* uas) @@ -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();

7
src/ui/px4_configuration/QGCPX4SensorCalibration.h

@ -23,6 +23,7 @@ public slots: @@ -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: @@ -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();

Loading…
Cancel
Save