MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / handleSpectrumWaterfall

Method handleSpectrumWaterfall

src/AppFrame.cpp:2366–2372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2364}
2365
2366void AppFrame::handleSpectrumWaterfall() {
2367 if (spectrumCanvas->getViewState() &&
2368 abs(wxGetApp().getFrequency() - spectrumCanvas->getCenterFrequency()) > (wxGetApp().getSampleRate() / 2)) {
2369 spectrumCanvas->setCenterFrequency(wxGetApp().getFrequency());
2370 waterfallCanvas->setCenterFrequency(wxGetApp().getFrequency());
2371 }
2372}
2373
2374void AppFrame::handleDemodWaterfallSpectrum() {
2375 if (demodWaterfallCanvas && wxGetApp().getFrequency() != demodWaterfallCanvas->getCenterFrequency()) {

Callers

nothing calls this directly

Calls 5

getViewStateMethod · 0.80
getFrequencyMethod · 0.45
getCenterFrequencyMethod · 0.45
getSampleRateMethod · 0.45
setCenterFrequencyMethod · 0.45

Tested by

no test coverage detected