Companion part

This commit is contained in:
Andre Bernet
2015-07-26 00:12:30 +02:00
parent a3fa0bd79d
commit cc41d69954
5 changed files with 22 additions and 2 deletions
+11
View File
@@ -728,6 +728,7 @@ TelemetryPanel::TelemetryPanel(QWidget *parent, ModelData & model, GeneralSettin
analogs[1] = new TelemetryAnalog(this, model.frsky.channels[1], model, generalSettings, firmware);
ui->A2Layout->addWidget(analogs[1]);
connect(analogs[1], SIGNAL(modified()), this, SLOT(onAnalogModified()));
ui->ignoreSensorIds->hide();
}
if (IS_TARANIS(firmware->getBoard())) {
@@ -870,6 +871,10 @@ void TelemetryPanel::setup()
ui->variousGB->show();
}
if (IS_ARM(firmware->getBoard())) {
ui->ignoreSensorIds->setChecked(model->frsky.ignoreSensorIds);
}
if (!(firmware->getCapability(HasMahPersistent))) {
ui->mahCount_label->hide();
ui->mahCount_SB->hide();
@@ -1036,6 +1041,12 @@ void TelemetryPanel::on_mahCount_SB_editingFinished()
emit modified();
}
void TelemetryPanel::on_ignoreSensorIds_toggled(bool checked)
{
model->frsky.ignoreSensorIds = checked;
emit modified();
}
void TelemetryPanel::on_mahCount_ChkB_toggled(bool checked)
{
model->frsky.mAhPersistent = checked;