From 4386f5e4a56f5d057262b70b95904986c52449e0 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 1 Oct 2015 02:46:41 +0200 Subject: [PATCH] Added DC offset and IQ imbalance buttons to Airspy GUI --- plugins/samplesource/airspy/airspygui.cpp | 12 ++++++++ plugins/samplesource/airspy/airspygui.h | 2 ++ plugins/samplesource/airspy/airspygui.ui | 34 +++++++++++++++++++++-- 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/plugins/samplesource/airspy/airspygui.cpp b/plugins/samplesource/airspy/airspygui.cpp index b60f08528..2fa3ed1ba 100644 --- a/plugins/samplesource/airspy/airspygui.cpp +++ b/plugins/samplesource/airspy/airspygui.cpp @@ -202,6 +202,18 @@ void AirspyGui::on_LOppm_valueChanged(int value) sendSettings(); } +void AirspyGui::on_dcOffset_toggled(bool checked) +{ + m_settings.m_dcBlock = checked; + sendSettings(); +} + +void AirspyGui::on_iqImbalance_toggled(bool checked) +{ + m_settings.m_iqCorrection = checked; + sendSettings(); +} + void AirspyGui::on_sampleRate_currentIndexChanged(int index) { m_settings.m_devSampleRateIndex = index; diff --git a/plugins/samplesource/airspy/airspygui.h b/plugins/samplesource/airspy/airspygui.h index 67777c450..8c55ea56c 100644 --- a/plugins/samplesource/airspy/airspygui.h +++ b/plugins/samplesource/airspy/airspygui.h @@ -67,6 +67,8 @@ private: private slots: void on_centerFrequency_changed(quint64 value); void on_LOppm_valueChanged(int value); + void on_dcOffset_toggled(bool checked); + void on_iqImbalance_toggled(bool checked); void on_sampleRate_currentIndexChanged(int index); void on_biasT_stateChanged(int state); void on_decim_valueChanged(int value); diff --git a/plugins/samplesource/airspy/airspygui.ui b/plugins/samplesource/airspy/airspygui.ui index cf65fac5d..d71ebe894 100644 --- a/plugins/samplesource/airspy/airspygui.ui +++ b/plugins/samplesource/airspy/airspygui.ui @@ -6,8 +6,8 @@ 0 0 - 198 - 214 + 247 + 242 @@ -136,6 +136,31 @@ + + + + + + DC offset + + + + + + + IQ imbalance + + + + + + + Auto corr + + + + + @@ -444,6 +469,11 @@
gui/valuedial.h
1 + + ButtonSwitch + QToolButton +
gui/buttonswitch.h
+