From a2d93915e8841d7dc7b0c3d07379f1c5a0b0c3bd Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Thu, 4 Feb 2021 14:53:12 +0100 Subject: [PATCH] Added airspy_source to defaults --- core/src/core.cpp | 1 + core/src/gui/main_window.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/core.cpp b/core/src/core.cpp index d32bee675..7f4a507e8 100644 --- a/core/src/core.cpp +++ b/core/src/core.cpp @@ -126,6 +126,7 @@ int sdrpp_main(int argc, char *argv[]) { defConfig["moduleInstances"]["PlutoSDR Source"] = "plutosdr_source"; defConfig["moduleInstances"]["RTL-TCP Source"] = "rtl_tcp_source"; defConfig["moduleInstances"]["AirspyHF+ Source"] = "airspyhf_source"; + defConfig["moduleInstances"]["Airspy Source"] = "airspy_source"; defConfig["moduleInstances"]["HackRF Source"] = "hackrf_source"; defConfig["moduleInstances"]["Audio Sink"] = "audio_sink"; diff --git a/core/src/gui/main_window.cpp b/core/src/gui/main_window.cpp index 4abdd0d48..8e5e7ef12 100644 --- a/core/src/gui/main_window.cpp +++ b/core/src/gui/main_window.cpp @@ -61,6 +61,7 @@ fftwf_plan p; float* tempFFT; float* FFTdata; char buf[1024]; +bool experimentalZoom = false; @@ -551,6 +552,7 @@ void drawWindow() { //sigpath::signalPath.setDCBiasCorrection(dcbias.val); } ImGui::Checkbox("Show demo window", &demoWindow); + ImGui::Checkbox("Experimental zoom", &experimentalZoom); ImGui::Spacing(); } @@ -582,7 +584,7 @@ void drawWindow() { ImGui::SetCursorPosX((ImGui::GetWindowSize().x / 2.0) - (ImGui::CalcTextSize("Zoom").x / 2.0)); ImGui::Text("Zoom"); ImGui::SetCursorPosX((ImGui::GetWindowSize().x / 2.0) - 10); - if (ImGui::VSliderFloat("##_7_", ImVec2(20.0, 150.0), &bw, gui::waterfall.getBandwidth(), 1000.0, "")) { + if (ImGui::VSliderFloat("##_7_", ImVec2(20.0, 150.0), &bw, gui::waterfall.getBandwidth(), 1000.0, "", (experimentalZoom ? 2.0 : 1.0))) { gui::waterfall.setViewBandwidth(bw); if (vfo != NULL) { gui::waterfall.setViewOffset(vfo->centerOffset); // center vfo on screen