mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-13 11:51:47 -05:00
ATV: harmonize FM deviation between modulator and demodulator
This commit is contained in:
parent
d43f59e93b
commit
e8415f7471
@ -93,7 +93,7 @@ void ATVDemodGUI::resetToDefaults()
|
||||
ui->rfBW->setValue(10);
|
||||
ui->rfOppBW->setValue(10);
|
||||
ui->bfo->setValue(0);
|
||||
ui->fmDeviation->setValue(100);
|
||||
ui->fmDeviation->setValue(250);
|
||||
|
||||
blockApplySettings(false);
|
||||
lineTimeUpdate();
|
||||
@ -184,7 +184,7 @@ bool ATVDemodGUI::deserialize(const QByteArray& arrData)
|
||||
ui->invertVideo->setChecked(booltmp);
|
||||
d.readS32(16, &tmp, 0);
|
||||
ui->nbLines->setCurrentIndex(tmp);
|
||||
d.readS32(17, &tmp, 100);
|
||||
d.readS32(17, &tmp, 250);
|
||||
ui->fmDeviation->setValue(tmp);
|
||||
d.readS32(18, &tmp, 1);
|
||||
ui->standard->setCurrentIndex(tmp);
|
||||
@ -400,7 +400,7 @@ void ATVDemodGUI::applyRFSettings()
|
||||
ui->rfFiltering->isChecked(),
|
||||
ui->decimatorEnable->isChecked(),
|
||||
ui->bfo->value(),
|
||||
ui->fmDeviation->value() / 100.0f);
|
||||
ui->fmDeviation->value() / 500.0f);
|
||||
}
|
||||
}
|
||||
|
||||
@ -633,7 +633,7 @@ void ATVDemodGUI::on_bfo_valueChanged(int value)
|
||||
|
||||
void ATVDemodGUI::on_fmDeviation_valueChanged(int value)
|
||||
{
|
||||
ui->fmDeviationText->setText(QString("%1").arg(value));
|
||||
ui->fmDeviationText->setText(QString("%1").arg(value / 10.0, 0, 'f', 1));
|
||||
applyRFSettings();
|
||||
}
|
||||
|
||||
|
@ -331,17 +331,20 @@
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>FM deviation as % of full bandwidth</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>125</number>
|
||||
<number>500</number>
|
||||
</property>
|
||||
<property name="pageStep">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>100</number>
|
||||
<number>250</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -349,12 +352,15 @@
|
||||
<widget class="QLabel" name="fmDeviationText">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<width>30</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>FM deviation as % of full bandwidth</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>100</string>
|
||||
<string>25.0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
|
@ -154,7 +154,7 @@ bool ATVModGUI::deserialize(const QByteArray& data)
|
||||
ui->fps->setCurrentIndex(tmp);
|
||||
d.readS32(12, &tmp, 80);
|
||||
ui->rfScaling->setValue(tmp);
|
||||
d.readS32(13, &tmp, 50);
|
||||
d.readS32(13, &tmp, 250);
|
||||
ui->fmExcursion->setValue(tmp);
|
||||
|
||||
blockApplySettings(false);
|
||||
@ -400,7 +400,7 @@ void ATVModGUI::on_rfScaling_valueChanged(int value)
|
||||
|
||||
void ATVModGUI::on_fmExcursion_valueChanged(int value)
|
||||
{
|
||||
ui->fmExcursionText->setText(tr("%1").arg(value));
|
||||
ui->fmExcursionText->setText(tr("%1").arg(value / 10.0, 0, 'f', 1));
|
||||
applySettings();
|
||||
}
|
||||
|
||||
@ -713,7 +713,7 @@ void ATVModGUI::applySettings()
|
||||
ui->channelMute->isChecked(),
|
||||
ui->invertVideo->isChecked(),
|
||||
ui->rfScaling->value() * 327.68f,
|
||||
ui->fmExcursion->value() / 100.0f,
|
||||
ui->fmExcursion->value() / 1000.0f, // percentage of full bandwidth. Value in pro milli
|
||||
ui->forceDecimator->isChecked());
|
||||
}
|
||||
}
|
||||
|
@ -299,16 +299,16 @@
|
||||
<string>FM excursion in % of total bandwidth</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>0</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>100</number>
|
||||
<number>500</number>
|
||||
</property>
|
||||
<property name="pageStep">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>50</number>
|
||||
<number>250</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -316,15 +316,15 @@
|
||||
<widget class="QLabel" name="fmExcursionText">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<width>30</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>FM deviation percentage of total bandwidth</string>
|
||||
<string>FM excursion in % of total bandwidth</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>50</string>
|
||||
<string>25.0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
|
Loading…
Reference in New Issue
Block a user