Skip to content

Commit e845268

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents a52b634 + 065a5b4 commit e845268

File tree

19 files changed

+427
-91
lines changed

19 files changed

+427
-91
lines changed

.github/workflows/build_all.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ jobs:
9292

9393
- name: Create Build Environment
9494
run: cmake -E make_directory ${{runner.workspace}}/build
95-
96-
- name: Update brew repositories
97-
run: brew update
9895

9996
- name: Install dependencies
10097
run: brew install pkg-config libusb fftw glfw airspy airspyhf portaudio hackrf libbladerf codec2 zstd autoconf automake libtool && pip3 install mako
@@ -103,7 +100,7 @@ jobs:
103100
run: git clone --recursive https://github.com/gnuradio/volk && cd volk && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
104101

105102
- name: Install SDRplay API
106-
run: wget https://www.sdrplay.com/software/SDRplayAPI-macos-installer-universal-3.12.1.pkg && sudo installer -pkg SDRplayAPI-macos-installer-universal-3.12.1.pkg -target /
103+
run: wget https://www.sdrplay.com/software/SDRplayAPI-macos-installer-universal-3.14.0.pkg && sudo installer -pkg SDRplayAPI-macos-installer-universal-3.14.0.pkg -target /
107104

108105
- name: Install libiio
109106
run: wget https://github.com/analogdevicesinc/libiio/archive/refs/tags/v0.25.zip && 7z x v0.25.zip && cd libiio-0.25 && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
@@ -146,18 +143,15 @@ jobs:
146143

147144
- name: Create Build Environment
148145
run: cmake -E make_directory ${{runner.workspace}}/build
149-
150-
- name: Update brew repositories
151-
run: brew update
152146

153147
- name: Install dependencies
154-
run: brew install pkg-config libusb fftw glfw airspy airspyhf portaudio hackrf libbladerf codec2 zstd autoconf automake libtool && pip3 install mako
148+
run: brew install pkg-config libusb fftw glfw airspy airspyhf portaudio hackrf libbladerf codec2 zstd autoconf automake libtool && pip3 install mako --break-system-packages
155149

156150
- name: Install volk
157151
run: git clone --recursive https://github.com/gnuradio/volk && cd volk && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
158152

159153
- name: Install SDRplay API
160-
run: wget https://www.sdrplay.com/software/SDRplayAPI-macos-installer-universal-3.12.1.pkg && sudo installer -pkg SDRplayAPI-macos-installer-universal-3.12.1.pkg -target /
154+
run: wget https://www.sdrplay.com/software/SDRplayAPI-macos-installer-universal-3.14.0.pkg && sudo installer -pkg SDRplayAPI-macos-installer-universal-3.14.0.pkg -target /
161155

162156
- name: Install libiio
163157
run: wget https://github.com/analogdevicesinc/libiio/archive/refs/tags/v0.25.zip && 7z x v0.25.zip && cd libiio-0.25 && mkdir build && cd build && cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../

core/src/gui/main_window.cpp

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ void MainWindow::draw() {
463463
}
464464
}
465465

466+
// Process menu keybinds
467+
displaymenu::checkKeybinds();
466468

467469
// Left Column
468470
lockWaterfallControls = false;
@@ -574,20 +576,20 @@ void MainWindow::draw() {
574576
// Handle scrollwheel
575577
int wheel = ImGui::GetIO().MouseWheel;
576578
if (wheel != 0 && (gui::waterfall.mouseInFFT || gui::waterfall.mouseInWaterfall)) {
577-
// Select factor depending on modifier keys
578-
double interval;
579-
if (ImGui::IsKeyDown(ImGuiKey_LeftShift)) {
580-
interval = vfo->snapInterval * 10.0;
581-
}
582-
else if (ImGui::IsKeyDown(ImGuiKey_LeftAlt)) {
583-
interval = vfo->snapInterval * 0.1;
584-
}
585-
else {
586-
interval = vfo->snapInterval;
587-
}
588-
589579
double nfreq;
590580
if (vfo != NULL) {
581+
// Select factor depending on modifier keys
582+
double interval;
583+
if (ImGui::IsKeyDown(ImGuiKey_LeftShift)) {
584+
interval = vfo->snapInterval * 10.0;
585+
}
586+
else if (ImGui::IsKeyDown(ImGuiKey_LeftAlt)) {
587+
interval = vfo->snapInterval * 0.1;
588+
}
589+
else {
590+
interval = vfo->snapInterval;
591+
}
592+
591593
nfreq = gui::waterfall.getCenterFrequency() + vfo->generalOffset + (interval * wheel);
592594
nfreq = roundl(nfreq / interval) * interval;
593595
}

core/src/gui/menus/display.cpp

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,24 @@ namespace displaymenu {
127127
uiScaleId = uiScales.valueId(style::uiScale);
128128
}
129129

130+
void setWaterfallShown(bool shown) {
131+
showWaterfall = shown;
132+
showWaterfall ? gui::waterfall.showWaterfall() : gui::waterfall.hideWaterfall();
133+
core::configManager.acquire();
134+
core::configManager.conf["showWaterfall"] = showWaterfall;
135+
core::configManager.release(true);
136+
}
137+
138+
void checkKeybinds() {
139+
if (ImGui::IsKeyPressed(ImGuiKey_Home, false)) {
140+
setWaterfallShown(!showWaterfall);
141+
}
142+
}
143+
130144
void draw(void* ctx) {
131145
float menuWidth = ImGui::GetContentRegionAvail().x;
132-
bool homePressed = ImGui::IsKeyPressed(ImGuiKey_Home, false);
133-
if (ImGui::Checkbox("Show Waterfall##_sdrpp", &showWaterfall) || homePressed) {
134-
if (homePressed) { showWaterfall = !showWaterfall; }
135-
showWaterfall ? gui::waterfall.showWaterfall() : gui::waterfall.hideWaterfall();
136-
core::configManager.acquire();
137-
core::configManager.conf["showWaterfall"] = showWaterfall;
138-
core::configManager.release(true);
146+
if (ImGui::Checkbox("Show Waterfall##_sdrpp", &showWaterfall)) {
147+
setWaterfallShown(showWaterfall);
139148
}
140149

141150
if (ImGui::Checkbox("Full Waterfall Update##_sdrpp", &fullWaterfallUpdate)) {

core/src/gui/menus/display.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
namespace displaymenu {
44
void init();
5+
void checkKeybinds();
56
void draw(void* ctx);
67
}

core/src/signal_path/source.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void SourceManager::tune(double freq) {
8484
if (selectedHandler == NULL) {
8585
return;
8686
}
87-
// TODO: No need to always retune the hardware in panadpter mode
87+
// TODO: No need to always retune the hardware in Panadapter mode
8888
selectedHandler->tuneHandler(((tuneMode == TuningMode::NORMAL) ? freq : ifFreq) + tuneOffset, selectedHandler->ctx);
8989
onRetune.emit(freq);
9090
currentFreq = freq;
@@ -100,7 +100,7 @@ void SourceManager::setTuningMode(TuningMode mode) {
100100
tune(currentFreq);
101101
}
102102

103-
void SourceManager::setPanadpterIF(double freq) {
103+
void SourceManager::setPanadapterIF(double freq) {
104104
ifFreq = freq;
105105
tune(currentFreq);
106106
}

core/src/signal_path/source.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class SourceManager {
3535
void tune(double freq);
3636
void setTuningOffset(double offset);
3737
void setTuningMode(TuningMode mode);
38-
void setPanadpterIF(double freq);
38+
void setPanadapterIF(double freq);
3939

4040
std::vector<std::string> getSourceNames();
4141

docker_builds/debian_bookworm/do_build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk2-dev
99
libcodec2-dev autoconf libtool xxd
1010

1111
# Install SDRPlay libraries
12-
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.12.1.run
13-
7z x ./SDRplay_RSP_API-Linux-3.12.1.run
14-
7z x ./SDRplay_RSP_API-Linux-3.12.1
15-
cp x86_64/libsdrplay_api.so.3.12 /usr/lib/libsdrplay_api.so
12+
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.14.0.run
13+
7z x ./SDRplay_RSP_API-Linux-3.14.0.run
14+
7z x ./SDRplay_RSP_API-Linux-3.14.0
15+
cp x86_64/libsdrplay_api.so.3.14 /usr/lib/libsdrplay_api.so
1616
cp inc/* /usr/include/
1717

1818
# Install libperseus

docker_builds/debian_bullseye/do_build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk2-dev
99
libcodec2-dev autoconf libtool xxd
1010

1111
# Install SDRPlay libraries
12-
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.12.1.run
13-
7z x ./SDRplay_RSP_API-Linux-3.12.1.run
14-
7z x ./SDRplay_RSP_API-Linux-3.12.1
15-
cp x86_64/libsdrplay_api.so.3.12 /usr/lib/libsdrplay_api.so
12+
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.14.0.run
13+
7z x ./SDRplay_RSP_API-Linux-3.14.0.run
14+
7z x ./SDRplay_RSP_API-Linux-3.14.0
15+
cp x86_64/libsdrplay_api.so.3.14 /usr/lib/libsdrplay_api.so
1616
cp inc/* /usr/include/
1717

1818
# Install libperseus

docker_builds/debian_buster/do_build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk1-dev
99
libcodec2-dev autoconf libtool xxd
1010

1111
# Install SDRPlay libraries
12-
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.12.1.run
13-
7z x ./SDRplay_RSP_API-Linux-3.12.1.run
14-
7z x ./SDRplay_RSP_API-Linux-3.12.1
15-
cp x86_64/libsdrplay_api.so.3.12 /usr/lib/libsdrplay_api.so
12+
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.14.0.run
13+
7z x ./SDRplay_RSP_API-Linux-3.14.0.run
14+
7z x ./SDRplay_RSP_API-Linux-3.14.0
15+
cp x86_64/libsdrplay_api.so.3.14 /usr/lib/libsdrplay_api.so
1616
cp inc/* /usr/include/
1717

1818
# Install libperseus

docker_builds/debian_sid/do_build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk-dev l
99
libcodec2-dev autoconf libtool xxd
1010

1111
# Install SDRPlay libraries
12-
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.12.1.run
13-
7z x ./SDRplay_RSP_API-Linux-3.12.1.run
14-
7z x ./SDRplay_RSP_API-Linux-3.12.1
15-
cp x86_64/libsdrplay_api.so.3.12 /usr/lib/libsdrplay_api.so
12+
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.14.0.run
13+
7z x ./SDRplay_RSP_API-Linux-3.14.0.run
14+
7z x ./SDRplay_RSP_API-Linux-3.14.0
15+
cp x86_64/libsdrplay_api.so.3.14 /usr/lib/libsdrplay_api.so
1616
cp inc/* /usr/include/
1717

1818
# Install libperseus

0 commit comments

Comments
 (0)